piston/repo/entrypoint.sh

13 lines
205 B
Bash
Raw Normal View History

cd /piston/packages
2021-03-14 00:33:15 +01:00
SERVER=1
for pkg in "$@"
do
2021-03-14 00:33:15 +01:00
[[ "$pkg" = "--no-server" ]] && SERVER=0 || make -j16 $pkg.pkg.tar.gz
done
cd /piston/repo
./mkindex.sh
2021-03-14 00:33:15 +01:00
[[ $SERVER -eq 1 ]] && python3 -m http.server