]> Zhao Yanbai Git Server - minix.git/commitdiff
Absolute path feature for packit
authorBen Gras <ben@minix3.org>
Fri, 17 Mar 2006 15:32:14 +0000 (15:32 +0000)
committerBen Gras <ben@minix3.org>
Fri, 17 Mar 2006 15:32:14 +0000 (15:32 +0000)
commands/scripts/packit.sh
commands/scripts/packme.sh

index afe2ba4adbbc6f19be3487a4f028d1c370803343..ecbfda16fa56b9e338e1f294dad2fe5a519ced8a 100644 (file)
@@ -13,7 +13,10 @@ fi
 dir=`pwd`
 if [ "$1" = "-" ]
 then f=""
-else f=$dir/$1
+else   case "$1" in
+       /*) f="$1" ;;
+       *) f="$dir/$1" ;;
+       esac
 fi
 
 set -e
index 7578656f751d9297fcccb9e4ccebfc16e2e6c331..a837281142ab45daa9073e80597244950f580c77 100644 (file)
@@ -43,12 +43,13 @@ then        pack=${cddrive}p2
                                        then    echo "Installing $srcarc into $SRC."
                                                smallbunzip2 -dc "$srcarc" | (cd $SRC && tar xf - )
                                        fi
+                               else    :
                                fi
                        fi
                done
        else    echo "CD mount failed - skipping CD packages."
        fi
-else   echo "Don't know where the install CD is."
+else   echo "Don't know where the install CD is. You can set it in $RC."
 fi
 
 TMPF=/tmp/list.$$