1 |
commit: 6f0ba98c8dbe1e1181c78aeb5b228c7af987fe5b |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 27 09:48:27 2011 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 27 09:48:27 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/fordfrog.git;a=commit;h=6f0ba98c |
7 |
|
8 |
netbeans: added script for batch update of changelogs |
9 |
|
10 |
--- |
11 |
scripts/netbeans/update_changelog.sh | 19 +++++++++++++++++++ |
12 |
1 files changed, 19 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/scripts/netbeans/update_changelog.sh b/scripts/netbeans/update_changelog.sh |
15 |
new file mode 100755 |
16 |
index 0000000..f304fa1 |
17 |
--- /dev/null |
18 |
+++ b/scripts/netbeans/update_changelog.sh |
19 |
@@ -0,0 +1,19 @@ |
20 |
+#!/bin/bash |
21 |
+DIR=${1} |
22 |
+MESSAGE=${2} |
23 |
+ |
24 |
+if [[ -z "${DIR}" ]] || [[ -z "${MESSAGE}" ]] ; then |
25 |
+ echo "Usage: <repo_root_directory> <message>" |
26 |
+ exit 1 |
27 |
+fi |
28 |
+ |
29 |
+pushd "${1}" >/dev/null || exit 1 |
30 |
+for dir in dev-*/netbeans*; do |
31 |
+ pushd "${dir}" |
32 |
+ echangelog "${MESSAGE}" |
33 |
+ ebuild `ls *.ebuild | tail -n1` digest |
34 |
+ popd |
35 |
+done |
36 |
+popd >/dev/null || exit 1 |
37 |
+ |
38 |
+echo "DONE!" |