CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
initial import for pkgadd-cross
authorJose V Beneyto <sepen@crux.nu>
Tue, 15 Dec 2009 19:16:55 +0000 (20:16 +0100)
committerJose V Beneyto <sepen@crux.nu>
Tue, 15 Dec 2009 19:16:55 +0000 (20:16 +0100)
Makefile
pkgadd-cross [new file with mode: 0755]

index 4d8680e6c0c98ac1c490bf9d024f93538532d432..50b6fd1ef518cab47c872588e5b49bd752f11bf6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
 # Makefile
 #
 
-all: src/pkgmk src/pkgmk.conf
+all: src/pkgmk src/pkgmk.conf src/pkgadd
 
 src/pkgmk:
        @make -C src
diff --git a/pkgadd-cross b/pkgadd-cross
new file mode 100755 (executable)
index 0000000..564410c
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+TOPDIR="$(cd $(dirname $0); pwd)"
+
+PKGADD=$TOPDIR/src/pkgadd
+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
+
+$PKGADD -r $CLFS $@
+
+# End of file