Changeset 3c9eb90 for builder/runrooted
- Timestamp:
- 05/28/20 15:12:44 (5 years ago)
- Branches:
- master
- Children:
- 30f002a
- Parents:
- eb67240
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
builder/runrooted
reb67240 r3c9eb90 10 10 # opnieuw gemaakt. 11 11 12 if ! which tar-1.13 >/dev/null; then 13 echo "Missing tar-1.13. Please copy ../npl/slackware/tar-1.13 to /bin. " 14 exit 1 15 fi 16 17 if ! which installpkg >/dev/null; then 18 echo "Missing pkgtools. Please copy binaries from ../npl/slackware/pkgtools-10.0.0-i486-1.tgz to /bin. " 19 exit 1 20 fi 21 22 if ! which lockfile-create > /dev/null; then 23 echo "Need lockfile-create. " 24 exit 1 25 fi 12 26 13 27 if [ -z $1 ]; then … … 24 38 for PAR in $*; do eval "$PAR=1" &>/dev/null; done 25 39 40 #create/mount builroot 41 if ! grep buildroots /proc/mounts >/dev/null; then 42 mkdir /tmp/buildroots 43 mount -t tmpfs tmpfs /tmp/buildroots 44 fi 45 export TMP=/tmp/buildroots 46 47 export MAKEFLAGS="-j10 $MAKEFLAGS" 48 26 49 #unieke identifier voor deze lokale checkout. Op dit moment gebruiken we hier het lokale pad voor: 27 50 SVNID=`pwd|tr / _` 28 51 29 export ROOTCOPY= /tmp/buildroot.copy.$SVNID52 export ROOTCOPY=$TMP/buildroot.copy.$SVNID 30 53 31 54 #bepaal welke buildroot 'vrij' is om te gebruiken 32 55 NR=0 33 export BUILDROOT= /tmp/buildroot$NR.$SVNID56 export BUILDROOT=$TMP/buildroot$NR.$SVNID 34 57 while ! lockfile-create -r0 $BUILDROOT ; do 35 58 (( NR++ )) 36 BUILDROOT= /tmp/buildroot$NR.$SVNID59 BUILDROOT=$TMP/buildroot$NR.$SVNID 37 60 if [ "$NR" -ge 10 ]; then 38 61 echo "No more free buildroots, giving up." … … 63 86 #ivm snelheid 64 87 #echo "Buildroot opschonen.." 65 #rm -rf $BUILDROOT /tmp/* &>/dev/null88 #rm -rf $BUILDROOT$TMP/* &>/dev/null 66 89 67 90
Note: See TracChangeset
for help on using the changeset viewer.