CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Improved prt-get-cross script and removed config file which now is not essential
authorJose V Beneyto <sepen@crux.nu>
Fri, 19 Oct 2012 02:33:33 +0000 (02:33 +0000)
committerJose V Beneyto <sepen@crux.nu>
Fri, 19 Oct 2012 02:33:33 +0000 (02:33 +0000)
prt-get-cross
prt-get-cross.conf [deleted file]

index fe2bca759e53084673510efc2653ce1dd32f0fe7..df24386d95080f7d82e63856de7e18115812c99a 100755 (executable)
@@ -2,13 +2,21 @@
 
 # Edit the variables to your needs
 
-PATH="/devel/crux-arm/pkgutils-cross:/devel/crux-arm/devtools:$PATH"
-CONFIG="/devel/crux-arm/devtools/prt-get-cross.conf"
-CLFS="/devel/crux-arm/toolchain/clfs"
+TOPDIR="/devel/crux-arm"
+
+PATH="$TOPDIR/pkgutils-cross:/devel/crux-arm/devtools:$PATH"
+CLFS="$TOPDIR/toolchain/clfs"
+CORE="$TOPDIR/ports/core-cross"
 
 export PATH
 
-prt-get --install-root=$CLFS --config=$CONFIG $@
+prt-get \
+  --install-root=$CLFS \
+  --config-prepend="prtdir $CORE" \
+  --config-set="makecommand pkgmk-cross" \
+  --config-set="addcommand pkgadd-cross" \
+  --config-set="removecommand pkgrm-cross" \
+  $@
 
 # End of file
 
diff --git a/prt-get-cross.conf b/prt-get-cross.conf
deleted file mode 100644 (file)
index 4dbb708..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-###
-### prt-get-cross conf
-###
-
-# note: the order matters: the package found first is used
-prtdir /devel/crux-arm/ports/core-cross
-
-### log options:
-writelog enabled       # (enabled|disabled)
-logmode  overwrite      # (append|overwrite)
-rmlog_on_success yes    # (no|yes)
-logfile  %p/%n-%v-%r.buildlog
-                        # path, %p=path to port dir, %n=port name
-                        #       %v=version, %r=release
-
-### print README information:
-readme verbose          # (verbose|compact|disabled)
-
-### prefer higher versions in sysup / diff
-preferhigher yes        # (yes|no)
-
-### use regexp search
-useregex yes            # (yes|no)
-
-### run pre- and post-installs scripts; yes is equivalent to the
-### --install-scripts option
-runscripts yes          # (no|yes)
-
-
-### EXPERT SECTION ###
-
-### alternative commands
-makecommand            pkgmk-cross
-addcommand             pkgadd-cross
-removecommand          pkgrm-cross