summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2011-06-27 11:48:27 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2011-06-27 11:48:27 +0200
commit6f0ba98c8dbe1e1181c78aeb5b228c7af987fe5b (patch)
tree805bbebddb48dec868ddd18a78117fbd82806992 /scripts
parentnetbeans: updated to latest nightly sources (diff)
downloadfordfrog-6f0ba98c8dbe1e1181c78aeb5b228c7af987fe5b.tar.gz
fordfrog-6f0ba98c8dbe1e1181c78aeb5b228c7af987fe5b.tar.bz2
fordfrog-6f0ba98c8dbe1e1181c78aeb5b228c7af987fe5b.zip
netbeans: added script for batch update of changelogs
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/netbeans/update_changelog.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/netbeans/update_changelog.sh b/scripts/netbeans/update_changelog.sh
new file mode 100755
index 000000000..f304fa12c
--- /dev/null
+++ b/scripts/netbeans/update_changelog.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+DIR=${1}
+MESSAGE=${2}
+
+if [[ -z "${DIR}" ]] || [[ -z "${MESSAGE}" ]] ; then
+ echo "Usage: <repo_root_directory> <message>"
+ exit 1
+fi
+
+pushd "${1}" >/dev/null || exit 1
+for dir in dev-*/netbeans*; do
+ pushd "${dir}"
+ echangelog "${MESSAGE}"
+ ebuild `ls *.ebuild | tail -n1` digest
+ popd
+done
+popd >/dev/null || exit 1
+
+echo "DONE!"