CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
- Added pkginfo to .gitignore
[pkgutils-cross.git] / pkgmk-cross
index f5ecafce82438384bb913b7f98298a9db6e51e94..888bf02dc705d1dba26cdad8748017867a0ba386 100755 (executable)
@@ -3,8 +3,8 @@
 TOPDIR="$(cd $(dirname $(which $0)); pwd)"
 TMP_CONF="$(mktemp)"
 
-PKGMK=$TOPDIR/src/pkgmk
-PKGMK_CONF=$TOPDIR/src/pkgmk.conf
+PKGMK=$TOPDIR/pkgmk
+PKGMK_CONF=$TOPDIR/pkgmk-cross.conf
 PKGMK_ARGS=""
 PKGMK_OPTIMIZE=""
 
@@ -29,8 +29,16 @@ if [ ! -z "$PKGMK_OPTIMIZE" ]; then
   fi
 fi
 
+if [ ! -x $PKGMK ]; then
+  chmod +x $PKGMK
+fi
+
 $PKGMK -cf $PKGMK_CONF $PKGMK_ARGS
+exit_code=$?
 
 rm -f $TMP_CONF
 
+# Pass along the exit code of pkgmk.
+exit $exit_code
+
 # End of file