]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- cvsup mode
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 29 Jan 2010 19:55:07 +0000 (19:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    relup.sh -> 1.19

relup.sh

index 3c27e78996383a720b8481de96ec3268530bd1cf..bde40673496d363fbec3f0bb559fca49407cabaa 100644 (file)
--- a/relup.sh
+++ b/relup.sh
@@ -20,11 +20,13 @@ get_dump() {
 }
 
 usage="Usage:
-${0##*/} [-i] [-t] [-m <MESSAGE>] <SPECLIST>
+${0##*/} [-i] [-u] [-t] [-m <MESSAGE>] <SPECLIST>
 
 Options:
 -i
   Try to increment package release
+-u
+  cvs update first
 -t
   Test mode. do not commit
 -m
@@ -66,6 +68,9 @@ while true; do
        -i)
                inc=1
                ;;
+       -u)
+               update=1
+               ;;
        -t)
                test=1
                ;;
@@ -109,6 +114,9 @@ for file in $(ls "$tmpd" 2>/dev/null); do
        msg="- release $rel${message:+ ($message)}"
        echo cvs ci -m "'$msg'"
        if [ "$test" != 1 ]; then
+               if [ "$update" = "1" ]; then
+                       cvs up $files
+               fi
                cvs ci -m "$msg" $files
        fi
 done
This page took 0.056403 seconds and 4 git commands to generate.