repo: allow build only

This commit is contained in:
Thomas Hobson 2021-03-14 12:33:15 +13:00
parent 8cc91a375c
commit 803b836933
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 4 additions and 2 deletions

View File

@ -1,11 +1,13 @@
cd /piston/packages
SERVER=1
for pkg in "$@"
do
make -j16 $pkg.pkg.tar.gz
[[ "$pkg" = "--no-server" ]] && SERVER=0 || make -j16 $pkg.pkg.tar.gz
done
cd /piston/repo
./mkindex.sh
python3 -m http.server
[[ $SERVER -eq 1 ]] && python3 -m http.server