TOPDIR="$(cd $(dirname $(which $0)); pwd)"
-PKGINFO=$TOPDIR/pkgadd
+PKGINFO=$TOPDIR/pkginfo
PKGMK_CONF=$TOPDIR/pkgmk-cross.conf
. $PKGMK_CONF
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
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
TOPDIR="$(cd $(dirname $(which $0)); pwd)"
-PKGRM=$TOPDIR/pkgadd
+PKGRM=$TOPDIR/pkgrm
PKGMK_CONF=$TOPDIR/pkgmk-cross.conf
. $PKGMK_CONF
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