CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
added pkginfo-cross and pkgadd-cross (also changes in Makefile)
authorJose V Beneyto <sepen@crux.nu>
Wed, 24 Feb 2010 22:32:35 +0000 (23:32 +0100)
committerJose V Beneyto <sepen@crux.nu>
Wed, 24 Feb 2010 22:32:35 +0000 (23:32 +0100)
Makefile
pkgadd-cross
pkginfo-cross [new file with mode: 0755]

index 50b6fd1ef518cab47c872588e5b49bd752f11bf6..60a2926ca48d301660a1f6a9a9b11079b61e8141 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
 # Makefile
 #
 
-all: src/pkgmk src/pkgmk.conf src/pkgadd
+all: src/pkgmk.conf src/pkgmk src/pkgadd src/pkginfo src/pkgrm
 
 src/pkgmk:
        @make -C src
index e4828165411ba713fc20f960a0f37f10cfb2cccc..8ecac21927a0dbb003b7c823001650f6b551e8de 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-TOPDIR="$(cd $(dirname $0); pwd)"
+TOPDIR="$(cd $(dirname $(which $0)); pwd)"
 
 PKGADD=$TOPDIR/src/pkgadd
 PKGMK_CONF=$TOPDIR/src/pkgmk.conf
diff --git a/pkginfo-cross b/pkginfo-cross
new file mode 100755 (executable)
index 0000000..1200b82
--- /dev/null
@@ -0,0 +1,17 @@
+#!/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