summaryrefslogtreecommitdiff
path: root/Tools/portbuild/scripts/makeduds
blob: 034d0dcdbb2f4d35d214cd51030b06b6e9cde2ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
# usage: $0 branch

# -j# to make duds
DUDSJOBS=4

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)
duds=../../${branch}/duds

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 -j${DUDSJOBS} ignorelist ECHO_MSG=true > ${duds} || exit 1
sort ${duds} > ${duds}.tmp
mv -f ${duds}.tmp ${duds}