From: Jose V Beneyto Date: Tue, 15 Dec 2009 19:16:55 +0000 (+0100) Subject: initial import for pkgadd-cross X-Git-Url: http://gitweb/?a=commitdiff_plain;h=b0b9d754d6b0b8314a8d4d8853bf16f1ac6d5261;p=pkgutils-cross.git initial import for pkgadd-cross --- diff --git a/Makefile b/Makefile index 4d8680e..50b6fd1 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # Makefile # -all: src/pkgmk src/pkgmk.conf +all: src/pkgmk src/pkgmk.conf src/pkgadd src/pkgmk: @make -C src diff --git a/pkgadd-cross b/pkgadd-cross new file mode 100755 index 0000000..564410c --- /dev/null +++ b/pkgadd-cross @@ -0,0 +1,17 @@ +#!/bin/sh + +TOPDIR="$(cd $(dirname $0); pwd)" + +PKGADD=$TOPDIR/src/pkgadd +PKGMK_CONF=$TOPDIR/src/pkgmk.conf +. $PKGMK_CONF + +if [ -z "$CLFS" ]; then + echo "Error, '\$CLFS' value not found" + echo "Please configure '$PKGMK_CONF' before use $(basename $0)" + exit 1 +fi + +$PKGADD -r $CLFS $@ + +# End of file