annotate sources/control-images/bootstrap-skeleton/mnt/run-build-stages.sh @ 1296:fe5af321ed29

Move bootstrap-skeleton/files to bootstrap-skeleton/mnt, to be consistent.
author Rob Landley <rob@landley.net>
date Sun, 21 Nov 2010 19:08:01 -0600
parents sources/control-images/bootstrap-skeleton/files/run-build-stages.sh@44073390f2b3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1256
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
1 #!/bin/sh
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
2
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
3 # Run each of the individual package build files, in order.
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
4
1282
44073390f2b3 Move the manifest tracking from build-one-package to run-build-stages and make it actually work.
Rob Landley <rob@landley.net>
parents: 1275
diff changeset
5 [ -z "$MANIFEST" ] && MANIFEST=/usr/src/packages
44073390f2b3 Move the manifest tracking from build-one-package to run-build-stages and make it actually work.
Rob Landley <rob@landley.net>
parents: 1275
diff changeset
6 touch "$MANIFEST"
44073390f2b3 Move the manifest tracking from build-one-package to run-build-stages and make it actually work.
Rob Landley <rob@landley.net>
parents: 1275
diff changeset
7
1269
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents: 1258
diff changeset
8 [ -z "$FILTER" ] || FILTER="/$FILTER/d"
7a60afa1846c More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
Rob Landley <rob@landley.net>
parents: 1258
diff changeset
9 for i in $(sed -r -e "$FILTER" -e "s@#.*@@" /mnt/package-list)
1256
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
10 do
1282
44073390f2b3 Move the manifest tracking from build-one-package to run-build-stages and make it actually work.
Rob Landley <rob@landley.net>
parents: 1275
diff changeset
11 if [ -z "$FORCE" ] && grep -q "$i" "$MANIFEST"
44073390f2b3 Move the manifest tracking from build-one-package to run-build-stages and make it actually work.
Rob Landley <rob@landley.net>
parents: 1275
diff changeset
12 then
44073390f2b3 Move the manifest tracking from build-one-package to run-build-stages and make it actually work.
Rob Landley <rob@landley.net>
parents: 1275
diff changeset
13 echo "$i already installed"
44073390f2b3 Move the manifest tracking from build-one-package to run-build-stages and make it actually work.
Rob Landley <rob@landley.net>
parents: 1275
diff changeset
14 continue
44073390f2b3 Move the manifest tracking from build-one-package to run-build-stages and make it actually work.
Rob Landley <rob@landley.net>
parents: 1275
diff changeset
15 fi
1258
c264495fbf21 Update the common code, use "files" directory instead of build for subdir.
Rob Landley <rob@landley.net>
parents: 1256
diff changeset
16 /mnt/build-one-package.sh "$i" || exit 1
1282
44073390f2b3 Move the manifest tracking from build-one-package to run-build-stages and make it actually work.
Rob Landley <rob@landley.net>
parents: 1275
diff changeset
17
44073390f2b3 Move the manifest tracking from build-one-package to run-build-stages and make it actually work.
Rob Landley <rob@landley.net>
parents: 1275
diff changeset
18 sed -i -e "/$i/d" "$MANIFEST" &&
44073390f2b3 Move the manifest tracking from build-one-package to run-build-stages and make it actually work.
Rob Landley <rob@landley.net>
parents: 1275
diff changeset
19 echo "$i" >> "$MANIFEST" || exit 1
1256
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
20 done