2 # review - Move a certain revision from sunrise/ to reviewed/
3 # Released into the public domain
5 source /etc/init.d/functions.sh
20 DIFF_OPTS="${DIFF_OPTS:--Nur}"
23 if [[ "$opt_norepoman" == "0" ]] ; then
24 ebegin "Running repoman"
25 export PORTDIR_OVERLAY="$(pwd)"
34 ${BOLD}Usage:${NORMAL} ${LIGHTBLUE}$0${NORMAL} [ ${GREEN}options${NORMAL} ] ${BLUE}revision${NORMAL}
36 ${GREEN}options${NORMAL}:
37 ${BOLD}--help, -h${NORMAL} Show help
38 ${BOLD}--norepoman, -p${NORMAL} Skip repoman check
39 ${BOLD}--noupdate, -d${NORMAL} Don't update from repository before committing
40 ${BOLD}--quiet, -q${NORMAL} Don't ask for confirmation
41 ${BOLD}--verbose, -v${NORMAL} Show detailed information during commit
46 while [[ $# > 0 ]] ; do
68 echo "!!! Error: Unknown option ${1}. See: $0 -h"
76 LC_ALL="C" ls -d *-* > profiles/categories
77 if [[ $(git diff profiles/categories) ]]; then
78 git diff profiles/categories | if [[ "$opt_quiet" == "0" ]] ; then less; else cat; fi
79 echo -n "${BOLD}Commit changes?${NORMAL} [${GREEN}Yes${NORMAL}/${RED}No${NORMAL}] "
84 git commit -m "Automatic update to categories" profiles/categories || exit 1
92 LC_ALL="C" sh scripts/use_desc_gen.sh . || exit $?
93 if [[ $(git diff profiles/use.local.desc) ]]; then
94 git diff profiles/use.local.desc | if [[ "$opt_quiet" == "0" ]] ; then less; else cat; fi
95 echo -n "${BOLD}Commit changes?${NORMAL} [${GREEN}Yes${NORMAL}/${RED}No${NORMAL}] "
100 git commit -m "Automatic update to use.local.desc" profiles/use.local.desc || exit 1
109 ebegin "Updating working copy to latest version from repository"
113 repoman_check || exit $?
115 ebegin "Running portdupe"
119 if [[ "$opt_quiet" == "0" ]] ; then
120 git diff master reviewed/master
122 ) | if [[ "$opt_quiet" == "0" ]] ; then less; else cat; fi
124 if [[ "$opt_quiet" == "0" ]] ; then
126 echo -n "${BOLD}Commit changes?${NORMAL} [${GREEN}Yes${NORMAL}/${RED}No${NORMAL}] "
141 ebegin "Pushing changes..."
142 if [[ "$opt_verbose" == "1" ]] ; then