aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2003-01-24 12:46:41 +0800
committerkris <kris@FreeBSD.org>2003-01-24 12:46:41 +0800
commit15a020906d3f4c044c059843eee92e40b961f987 (patch)
tree6c42765077c278aee705d2e1cd6d87c5a18e66b4 /Tools
parenta7fb62856fc931cd0b9dfaee4d3a5b81063292b6 (diff)
downloadfreebsd-ports-gnome-15a020906d3f4c044c059843eee92e40b961f987.tar.gz
freebsd-ports-gnome-15a020906d3f4c044c059843eee92e40b961f987.tar.zst
freebsd-ports-gnome-15a020906d3f4c044c059843eee92e40b961f987.zip
- Use ${arch} and ${INDEXFILE}
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/makeindex17
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}