From: Jose V Beneyto Date: Tue, 13 Aug 2013 19:45:29 +0000 (+0000) Subject: Modified again pkg*-cross scripts for being compatible with upstream branch sources X-Git-Url: http://gitweb/?a=commitdiff_plain;h=77b59cfe676b96b077a6a67b37f644c2bdd29d41;p=pkgutils-cross.git Modified again pkg*-cross scripts for being compatible with upstream branch sources --- diff --git a/pkginfo-cross b/pkginfo-cross index 4b2d359..201c580 100755 --- a/pkginfo-cross +++ b/pkginfo-cross @@ -2,7 +2,7 @@ TOPDIR="$(cd $(dirname $(which $0)); pwd)" -PKGINFO=$TOPDIR/pkgadd +PKGINFO=$TOPDIR/pkginfo PKGMK_CONF=$TOPDIR/pkgmk-cross.conf . $PKGMK_CONF @@ -13,6 +13,11 @@ if [ -z "$CLFS" ]; then exit 1 fi -$PKGINFO -r $CLFS $@ +if [ -x $PKGINFO ]; then + $PKGINFO -r $CLFS $@ +else + ln -s pkgadd pkginfo + $PKGINFO -r $CLFS $@ +fi # End of file diff --git a/pkgmk-cross b/pkgmk-cross index a3c64ba..6d02f4b 100755 --- a/pkgmk-cross +++ b/pkgmk-cross @@ -29,7 +29,12 @@ if [ ! -z "$PKGMK_OPTIMIZE" ]; then fi fi -$PKGMK -cf $PKGMK_CONF $PKGMK_ARGS +if [ -x $PKGMK ]; then + $PKGMK -cf $PKGMK_CONF $PKGMK_ARGS +else + chmod +x $PKGMK + $PKGMK -cf $PKGMK_CONF $PKGMK_ARGS +fi rm -f $TMP_CONF diff --git a/pkgrm-cross b/pkgrm-cross index 835190e..88b9876 100755 --- a/pkgrm-cross +++ b/pkgrm-cross @@ -2,7 +2,7 @@ TOPDIR="$(cd $(dirname $(which $0)); pwd)" -PKGRM=$TOPDIR/pkgadd +PKGRM=$TOPDIR/pkgrm PKGMK_CONF=$TOPDIR/pkgmk-cross.conf . $PKGMK_CONF @@ -13,6 +13,13 @@ if [ -z "$CLFS" ]; then exit 1 fi +if [ -x $PKGRM ]; then + $PKGRM -r $CLFS $@ +else + ln -s pkgadd pkgrm + $PKGRM -r $CLFS $@ +fi + $PKGRM -r $CLFS $@ # End of file