From: Jose V Beneyto Date: Wed, 24 Feb 2010 22:32:35 +0000 (+0100) Subject: added pkginfo-cross and pkgadd-cross (also changes in Makefile) X-Git-Url: http://gitweb/?a=commitdiff_plain;h=3972cbb4917b478e60f8568a9d9a5ace84b5374d;p=pkgutils-cross.git added pkginfo-cross and pkgadd-cross (also changes in Makefile) --- diff --git a/Makefile b/Makefile index 50b6fd1..60a2926 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # Makefile # -all: src/pkgmk src/pkgmk.conf src/pkgadd +all: src/pkgmk.conf src/pkgmk src/pkgadd src/pkginfo src/pkgrm src/pkgmk: @make -C src diff --git a/pkgadd-cross b/pkgadd-cross index e482816..8ecac21 100755 --- a/pkgadd-cross +++ b/pkgadd-cross @@ -1,6 +1,6 @@ #!/bin/sh -TOPDIR="$(cd $(dirname $0); pwd)" +TOPDIR="$(cd $(dirname $(which $0)); pwd)" PKGADD=$TOPDIR/src/pkgadd PKGMK_CONF=$TOPDIR/src/pkgmk.conf diff --git a/pkginfo-cross b/pkginfo-cross new file mode 100755 index 0000000..1200b82 --- /dev/null +++ b/pkginfo-cross @@ -0,0 +1,17 @@ +#!/bin/sh + +TOPDIR="$(cd $(dirname $(which $0)); pwd)" + +PKGINFO=/usr/bin/pkginfo #$TOPDIR/src/pkginfo +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 + +$PKGINFO -r $CLFS $@ + +# End of file