summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Sachau <tommy@gentoo.org>2008-09-21 12:43:31 +0000
committerThomas Sachau <tommy@gentoo.org>2008-09-21 12:43:31 +0000
commitb84e02ed4e8654beaf8b907bc9a0c2add025700f (patch)
tree10a226af418fb486da8a06e8a9d4e838fc6546b9 /scripts
parentapp-misc/mnemosyne: Initial import, based on bug #173711. Thanks to Pavol, T... (diff)
downloadsunrise-reviewed-b84e02ed4e8654beaf8b907bc9a0c2add025700f.tar.gz
sunrise-reviewed-b84e02ed4e8654beaf8b907bc9a0c2add025700f.tar.bz2
sunrise-reviewed-b84e02ed4e8654beaf8b907bc9a0c2add025700f.zip
scripts/review: Update review script
svn path=/sunrise/; revision=7136
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/review18
1 files changed, 17 insertions, 1 deletions
diff --git a/scripts/review b/scripts/review
index 8000a0d79..c116d39c0 100755
--- a/scripts/review
+++ b/scripts/review
@@ -91,6 +91,22 @@ while [[ $# > 0 ]] ; do
done
cd sunrise
+ls -d *-* > profiles/categories
+if [[ $(svn diff profiles/categories) ]]; then
+ svn diff profiles/categories | if [[ "$opt_quiet" == "0" ]] ; then less; else cat; fi
+ echo -n "${BOLD}Commit changes?${NORMAL} [${GREEN}Yes${NORMAL}/${RED}No${NORMAL}] "
+ read choice
+ echo
+ case "$choice" in
+ y*|Y*|"")
+ svn commit -m "Automatic update to categories" profiles/categories || exit
+ ;;
+ *)
+ echo "Quitting."
+ echo
+ exit ;;
+ esac
+fi
sh scripts/use_desc_gen.sh . || exit $?
if [[ $(svn diff profiles/use.local.desc) ]]; then
svn diff profiles/use.local.desc | if [[ "$opt_quiet" == "0" ]] ; then less; else cat; fi
@@ -101,7 +117,7 @@ if [[ $(svn diff profiles/use.local.desc) ]]; then
y*|Y*|"")
svn commit -m "Automatic update to use.local.desc" profiles/use.local.desc || exit
;;
- *)
+ *)
echo "Quitting."
echo
exit ;;