CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Modified again pkg*-cross scripts for being compatible with upstream branch sources
[pkgutils-cross.git] / pkginfo-cross
index c971de022244f6380899bffa276efcc455671986..201c58088aa08d098ab523d90fadf6aa47828d56 100755 (executable)
@@ -2,9 +2,9 @@
 
 TOPDIR="$(cd $(dirname $(which $0)); pwd)"
 
-PKGINFO=$TOPDIR/src/pkginfo
+PKGINFO=$TOPDIR/pkginfo
 
-PKGMK_CONF=$TOPDIR/src/pkgmk.conf
+PKGMK_CONF=$TOPDIR/pkgmk-cross.conf
 . $PKGMK_CONF
 
 if [ -z "$CLFS" ]; then
@@ -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