From 4c87925cded132744770f4eb8b8e274f62602bdf Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Fri, 19 Oct 2012 02:33:33 +0000 Subject: [PATCH] Improved prt-get-cross script and removed config file which now is not essential --- prt-get-cross | 16 ++++++++++++---- prt-get-cross.conf | 35 ----------------------------------- 2 files changed, 12 insertions(+), 39 deletions(-) delete mode 100644 prt-get-cross.conf diff --git a/prt-get-cross b/prt-get-cross index fe2bca7..df24386 100755 --- a/prt-get-cross +++ b/prt-get-cross @@ -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 index 4dbb708..0000000 --- a/prt-get-cross.conf +++ /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 -- 2.26.2