aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/portbuild/scripts/makeduds
blob: daa50758b310f174da056ca1ad311b81e6a92f8e (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
#!/bin/sh
# usage: $0 branch

# configurable variables
pb=/var/portbuild

. ${pb}/portbuild.conf

. ${pb}/scripts/buildenv

# -j# to make duds
DUDSJOBS=4

usage () {
  echo "usage: makeduds branch"
  exit 1
}
if [ $# != 1 ]; then
  usage
fi

branch=$1

buildenv ${pb} ${branch}

duds=${pb}/${branch}/duds

unset DISPLAY

cd ${PORTSDIR}
make -j${DUDSJOBS} ignorelist ECHO_MSG=true > ${duds} || exit 1
sort ${duds} > ${duds}.tmp
mv -f ${duds}.tmp ${duds}