Author: glen Date: Fri Nov 2 22:50:05 2012 GMT Module: PLD-doc Tag: HEAD ---- Log message: - allow topdir override; doc about initial checkout
---- Files affected: PLD-doc: notify-specsupdate.sh (1.7 -> 1.8) ---- Diffs: ================================================================ Index: PLD-doc/notify-specsupdate.sh diff -u PLD-doc/notify-specsupdate.sh:1.7 PLD-doc/notify-specsupdate.sh:1.8 --- PLD-doc/notify-specsupdate.sh:1.7 Sat Feb 19 20:29:43 2011 +++ PLD-doc/notify-specsupdate.sh Fri Nov 2 23:50:00 2012 @@ -5,13 +5,19 @@ # # Setup your cron to check status hourly: # 01 * * * * /some/path/PLD-doc/notify-specsupdate.sh + +# For initial checkout: +# cvs co PLD-doc/notify-specsupdate.sh +# +# to check only files in ~/rpm/gnome (as rpm top tree): +# PLD-doc/notify-specsupdate.sh ~/rpm/gnome # # $Id$ # Author: Elan Ruusamäe <[email protected]> set -e dir=$(dirname "$0") -topdir=$(rpm -E %_topdir) +topdir=${1:-$(rpm -E %_topdir)} file=PLD-update-TODO cd $dir @@ -19,7 +25,7 @@ status=$(echo "$buf" | sed -rne 's/.+Status: (.+)$/\1/p') if [ "$status" = "Needs Checkout" ]; then cvs -Q up $file - # No new changes + # do not process list on first checkout exit 0 fi ================================================================ ---- CVS-web: http://cvs.pld-linux.org/PLD-doc/notify-specsupdate.sh?r1=1.7&r2=1.8 _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
