CRUX-ARM :
Home
Home
::
Documentation
::
Download
::
Development
::
Community
::
Ports
::
Packages
::
Bugs
::
Links
::
About
::
Donors
development
/
pkgutils-cross.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modified again pkg*-cross scripts for being compatible with upstream branch sources
[pkgutils-cross.git]
/
pkgmk-cross
diff --git
a/pkgmk-cross
b/pkgmk-cross
index f5ecafce82438384bb913b7f98298a9db6e51e94..6d02f4b670789a57d2dabce441e54599819533ce 100755
(executable)
--- a/
pkgmk-cross
+++ b/
pkgmk-cross
@@
-3,8
+3,8
@@
TOPDIR="$(cd $(dirname $(which $0)); pwd)"
TMP_CONF="$(mktemp)"
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=""
PKGMK_ARGS=""
PKGMK_OPTIMIZE=""
@@
-29,7
+29,12
@@
if [ ! -z "$PKGMK_OPTIMIZE" ]; then
fi
fi
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
rm -f $TMP_CONF