diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2003-01-24 04:46:41 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2003-01-24 04:46:41 +0000 |
commit | d80ddb3e6d9e7a6f6f13c1f1a126df3bee80291b (patch) | |
tree | 61cc4541371dc4e4592de539d98984a63422f3c2 /Tools/portbuild | |
parent | Add the ${arch} argument (diff) |
- Use ${arch} and ${INDEXFILE}
Notes
Notes:
svn path=/head/; revision=73911
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-x | Tools/portbuild/scripts/makeindex | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Tools/portbuild/scripts/makeindex b/Tools/portbuild/scripts/makeindex index 2eefcf7e0703..62dc9edb9b25 100755 --- a/Tools/portbuild/scripts/makeindex +++ b/Tools/portbuild/scripts/makeindex @@ -1,16 +1,18 @@ #!/bin/sh -# usage: $0 branch +# usage: $0 arch branch # -j# to make index # XXX corrupts index file because of lack of synchronization? #INDEXJOBS=1 pb=/var/portbuild -. ${pb}/portbuild.conf +arch=$1 +shift +. ${pb}/${arch}/portbuild.conf . ${pb}/scripts/buildenv usage () { - echo "usage: makeindex branch" + echo "usage: makeindex arch branch" exit 1 } @@ -21,12 +23,15 @@ fi case "x$1" in x4) branch=4 + INDEXFILE=INDEX ;; x4-exp) branch=4-exp + INDEXFILE=INDEX ;; x5) branch=5 + INDEXFILE=INDEX-5 ;; *) usage @@ -34,7 +39,7 @@ case "x$1" in esac # Set up the build env variables -buildenv ${pb} ${branch} +buildenv ${pb} ${arch} ${branch} unset DISPLAY @@ -46,6 +51,6 @@ cd ${PORTSDIR} make index # remove extra spaces in dependency list -- this causes problems # Also transform the dummy paths to their canonical locations -sed -e 's/ */ /g' -e 's/| */|/g' -e 's/ *|/|/g' -e "s,${LOCALBASE},/usr/local," -e "s,${X11BASE},/usr/X11R6," INDEX > INDEX.tmp +sed -e 's/ */ /g' -e 's/| */|/g' -e 's/ *|/|/g' -e "s,${LOCALBASE},/usr/local," -e "s,${X11BASE},/usr/X11R6," ${INDEXFILE} > ${INDEXFILE}.tmp -mv -f INDEX.tmp INDEX +mv -f ${INDEXFILE}.tmp ${INDEXFILE} |