From 3972cbb4917b478e60f8568a9d9a5ace84b5374d Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Wed, 24 Feb 2010 23:32:35 +0100 Subject: [PATCH] added pkginfo-cross and pkgadd-cross (also changes in Makefile) --- Makefile | 2 +- pkgadd-cross | 2 +- pkginfo-cross | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100755 pkginfo-cross 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 -- 2.26.2