#!/bin/sh
-TOPDIR="$(cd $(dirname $0); pwd)"
+TOPDIR="$(cd $(dirname $(which $0)); pwd)"
PKGADD=$TOPDIR/src/pkgadd
PKGMK_CONF=$TOPDIR/src/pkgmk.conf
--- /dev/null
+#!/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