summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Sachau <tommy@gentoo.org>2008-09-08 20:17:01 +0000
committerThomas Sachau <tommy@gentoo.org>2008-09-08 20:17:01 +0000
commit6dacf51cbe582de67c38457b70a2e496aac55acf (patch)
tree8e3e099b81d5ac0ea879816d6d2a7957ee869c19 /scripts/review
parentsci-biology/glimmerhmm: In gentoo-x86 (diff)
downloadsunrise-6dacf51cbe582de67c38457b70a2e496aac55acf.tar.gz
sunrise-6dacf51cbe582de67c38457b70a2e496aac55acf.tar.bz2
sunrise-6dacf51cbe582de67c38457b70a2e496aac55acf.zip
scripts/review: Add update to use.local.desc to review script
svn path=/sunrise/; revision=7032
Diffstat (limited to 'scripts/review')
-rwxr-xr-xscripts/review21
1 files changed, 20 insertions, 1 deletions
diff --git a/scripts/review b/scripts/review
index 3499f0713..54c7e748a 100755
--- a/scripts/review
+++ b/scripts/review
@@ -90,6 +90,25 @@ while [[ $# > 0 ]] ; do
esac
done
+cd sunrise
+sh scripts/use_desc_gen.sh .
+if [[ $(svn diff profiles/use.local.desc) ]]; then
+ svn diff profiles/use.local.desc | 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 use.local.desc" profiles/use.local.desc || exit
+ ;;
+ *)
+ echo "Quitting."
+ echo
+ exit ;;
+ esac
+fi
+cd ..
+
if [[ -z "$*" ]] ; then
ebegin "Updating working copy to latest version from repository"
update=$(svn_up)
@@ -97,7 +116,7 @@ if [[ -z "$*" ]] ; then
echo $update
fi
update=$(echo $update | tail -n 1)
- update=${update/At revision }
+ update=${update/Revision }
sunrise_revision=${update/.}
[ "$sunrise_revision" -lt "10" ] && exit 1
eend