summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2012-04-26 23:43:59 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2012-04-26 23:43:59 +0200
commit13c3ea5a779c893f1f4de52f7901fbca0c2fc0ad (patch)
tree065b4a6b51b821600197d2365a0f8522ad85c9b4 /scripts
parentnetbeans: version bump in 7.1 slot (diff)
downloadfordfrog-13c3ea5a779c893f1f4de52f7901fbca0c2fc0ad.tar.gz
fordfrog-13c3ea5a779c893f1f4de52f7901fbca0c2fc0ad.tar.bz2
fordfrog-13c3ea5a779c893f1f4de52f7901fbca0c2fc0ad.zip
added netbeans helper script for copying of ebuilds to the main tree
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/netbeans/copy_to_tree.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/netbeans/copy_to_tree.sh b/scripts/netbeans/copy_to_tree.sh
new file mode 100755
index 000000000..26162cc2b
--- /dev/null
+++ b/scripts/netbeans/copy_to_tree.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+ROOT=$(dirname $(dirname $(dirname $(readlink -f ${0}))))
+TREE=${1}
+VERSION=${2}
+MESSAGE=${3}
+
+if [ -z "${TREE}" -o -z "${VERSION}" -o -z "${MESSAGE}" ]; then
+ echo "Usage: ${0} <tree> <version> <message>"
+ exit 1
+fi
+
+pushd ${ROOT} &> /dev/null
+
+for file in */*/*${VERSION}*.ebuild; do
+ cp ${file} ${TREE}${file}
+ pushd ${TREE}$(dirname ${file}) &> /dev/null
+ cvs add $(basename ${file})
+ echangelog "${MESSAGE}"
+ ebuild $(basename ${file}) manifest
+ popd &> /dev/null
+done
+
+popd &> /dev/null