aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1999-06-22 07:45:34 +0000
committerSatoshi Asami <asami@FreeBSD.org>1999-06-22 07:45:34 +0000
commit8ec91a7640ec92bafeab7f588ce5c24164ab5bd9 (patch)
tree6a0adee776c1330a876d6e5deb55c6d8c67f3a7f /Tools
parent3dc9d1aad20162de5c31028a8ed927f646874bb9 (diff)
downloadports-8ec91a7640ec92bafeab7f588ce5c24164ab5bd9.tar.gz
ports-8ec91a7640ec92bafeab7f588ce5c24164ab5bd9.zip
The makeindex and makeduds scripts now take a "branch" argument to work
on the specified branch.
Notes
Notes: svn path=/head/; revision=19627
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/makeduds42
-rwxr-xr-xTools/portbuild/scripts/makeindex42
2 files changed, 78 insertions, 6 deletions
diff --git a/Tools/portbuild/scripts/makeduds b/Tools/portbuild/scripts/makeduds
index 8c8baa0152da..351a00fad81a 100755
--- a/Tools/portbuild/scripts/makeduds
+++ b/Tools/portbuild/scripts/makeduds
@@ -1,7 +1,43 @@
#!/bin/sh
-export PORTOBJFORMAT=aout
-export OSVERSION=228001
+# usage: $0 branch
+usage () {
+ echo "usage: makeduds branch"
+ exit 1
+}
+if [ $# != 1 ]; then
+ usage
+fi
+case "x$1" in
+ x2.2)
+ branch=2.2
+ export PORTOBJFORMAT=aout
+ export OSREL=2.2.8
+ export OSVERSION=228001
+ ;;
+ x3)
+ branch=3
+ export PORTOBJFORMAT=elf
+ # export OSREL=3.1
+ # export OSVERSION=310002
+ ;;
+ x4)
+ branch=4
+ export PORTOBJFORMAT=elf
+ export OSREL=4.0
+ export OSVERSION=400002
+ ;;
+ *)
+ usage
+ ;;
+esac
+
+export PORTSDIR=$(pwd)
+
unset DISPLAY
+export BATCH=t
export HAVE_MOTIF=t
+export PACKAGE_BUILDING=t
export PARALLEL_PACKAGE_BUILD=t
-make ignorelist ECHO_MSG=true > ../../2.2/duds
+export NO_RESTRICTED=t
+#export FOR_CDROM=t
+make ignorelist ECHO_MSG=true > ../../${branch}/duds
diff --git a/Tools/portbuild/scripts/makeindex b/Tools/portbuild/scripts/makeindex
index 190275216aed..859e5e0ecdef 100755
--- a/Tools/portbuild/scripts/makeindex
+++ b/Tools/portbuild/scripts/makeindex
@@ -1,7 +1,43 @@
#!/bin/sh
-export OSREL=2.2.8
-export OSVERSION=228001
-export PORTOBJFORMAT=aout
+# usage: $0 branch
+usage () {
+ echo "usage: makeindex branch"
+ exit 1
+}
+if [ $# != 1 ]; then
+ usage
+fi
+case "x$1" in
+ x2.2)
+ branch=2.2
+ export PORTOBJFORMAT=aout
+ export OSREL=2.2.8
+ export OSVERSION=228001
+ ;;
+ x3)
+ branch=3
+ export PORTOBJFORMAT=elf
+ # export OSREL=3.1
+ # export OSVERSION=310002
+ ;;
+ x4)
+ branch=4
+ export PORTOBJFORMAT=elf
+ export OSREL=4.0
+ export OSVERSION=400002
+ ;;
+ *)
+ usage
+ ;;
+esac
+
export PORTSDIR=$(pwd)
+
+unset DISPLAY
+export BATCH=t
+export HAVE_MOTIF=t
+export PACKAGE_BUILDING=t
export PARALLEL_PACKAGE_BUILD=t
+export NO_RESTRICTED=t
+#export FOR_CDROM=t
make index