Mercurial > hg > aboriginal
comparison sources/control-images/bootstrap-skeleton/files/run-build-stages.sh @ 1282:44073390f2b3
Move the manifest tracking from build-one-package to run-build-stages and make it actually work.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 11 Nov 2010 04:49:16 -0600 |
parents | a4cb2ed0a551 |
children |
comparison
equal
deleted
inserted
replaced
1281:720b109bc978 | 1282:44073390f2b3 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # Run each of the individual package build files, in order. | 3 # Run each of the individual package build files, in order. |
4 | 4 |
5 [ -z "$MANIFEST" ] && MANIFEST=/usr/src/packages | |
6 touch "$MANIFEST" | |
7 | |
5 [ -z "$FILTER" ] || FILTER="/$FILTER/d" | 8 [ -z "$FILTER" ] || FILTER="/$FILTER/d" |
6 for i in $(sed -r -e "$FILTER" -e "s@#.*@@" /mnt/package-list) | 9 for i in $(sed -r -e "$FILTER" -e "s@#.*@@" /mnt/package-list) |
7 do | 10 do |
11 if [ -z "$FORCE" ] && grep -q "$i" "$MANIFEST" | |
12 then | |
13 echo "$i already installed" | |
14 continue | |
15 fi | |
8 /mnt/build-one-package.sh "$i" || exit 1 | 16 /mnt/build-one-package.sh "$i" || exit 1 |
17 | |
18 sed -i -e "/$i/d" "$MANIFEST" && | |
19 echo "$i" >> "$MANIFEST" || exit 1 | |
9 done | 20 done |