]> git.ozlabs.org Git - next-scripts/commitdiff
Use '$' for the command promt in logging
authorStephen Rothwell <sfr@canb.auug.org.au>
Sun, 6 Apr 2008 23:53:23 +0000 (09:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 6 Apr 2008 23:53:23 +0000 (09:53 +1000)
Print the specified BASE instead of the resolved one.

update_trees

index 8465a94fa5000196fa510853db6da2cffc5381df..a4ba9a9fa9beef192e4cc6a6a2b1baf966b56c87 100755 (executable)
@@ -11,7 +11,7 @@ log()
 
 execute()
 {
-       log "#" $@
+       log "$" $@
        $@ 2>&1 | tee -a ../quilt-import.log
 }
 
@@ -25,16 +25,17 @@ for name in $quilters; do
        else
                base=$(sed -n 's/^[#    ]*BASE[         ]*\(.*\)[       ]*$/\1/p' "$sfile")
        fi
+       rbase="$base"
        case "$base" in
-       *-git[0-9]*)    base=$(wget -q -O - "http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-${base}.id")
+       *-git[0-9]*)    rbase=$(wget -q -O - "http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-${base}.id")
                        ;;
-       commit*)        base=$(expr "$base" : "commit[  ]*\(.*\)")
+       commit*)        rbase=$(expr "$base" : "commit[         ]*\(.*\)")
                        ;;
-       [0-9]*.*)       base="v$base"
+       [0-9]*.*)       rbase="v$base"
                        ;;
        esac
        log "Importing $name based on $base"
-       git rev-list -n 1 "$base" -- >/dev/null 2>&1 || {
+       git rev-list -n 1 "$rbase" -- >/dev/null 2>&1 || {
                log "Unknown BASE"
                continue
        }
@@ -53,7 +54,7 @@ for name in $quilters; do
        }
 
        execute git branch -D "quilt/$name"
-       execute git checkout -b "quilt/$name" "$base" || sh -i || {
+       execute git checkout -b "quilt/$name" "$rbase" || sh -i || {
                [ -f "$sfile.orig" ] && mv -f $sfile.orig $sfile
                exit 1
        }