]> Pileus Git - ~andy/sunrise/commitdiff
scripts/review: Update review script
authorThomas Sachau <tommy@gentoo.org>
Sun, 21 Sep 2008 12:43:31 +0000 (12:43 +0000)
committerThomas Sachau <tommy@gentoo.org>
Sun, 21 Sep 2008 12:43:31 +0000 (12:43 +0000)
svn path=/sunrise/; revision=7136

scripts/review

index 8000a0d79c18c4e0c4d4b390c2e2b1d4a5b75398..c116d39c08736c38b95c7ed2282f0116e83e79f6 100755 (executable)
@@ -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 ;;