cleanup: merge package download/build phases

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-03-16 23:32:59 +01:00
parent b2c4934145
commit afd023802f
2 changed files with 2 additions and 8 deletions

8
mk.sh
View File

@ -64,7 +64,6 @@ echo "--- boot strap phase ---"
for pkg in tc-pkgtool; do
include_pkg "$pkg"
fetch_package
build_package
done
@ -87,13 +86,6 @@ pkg buildstrategy -p "$PROVIDESLIST" -d "$DEPENDSLIST" "$RELEASEPKG" \
> "$PACKAGELIST"
cat "$PACKAGELIST"
echo "--- downloading package files ---"
while read pkg; do
include_pkg "$pkg"
fetch_package
done < "$PACKAGELIST"
echo "--- building packages ---"
while read pkg; do

View File

@ -16,6 +16,8 @@ build_package() {
rm -f "$REPODIR/${f}.pkg"
done
fetch_package
rm -rf "$TCDIR/$TARGET" "$PKGBUILDDIR" "$PKGDEPLOYDIR"
mkdir -p "$TCDIR/$TARGET" "$PKGBUILDDIR" "$PKGDEPLOYDIR"