remove gitlab-ci and minor cleanup of build script

main
Matt C 2 years ago committed by Michal
parent ff5c2373e9
commit dcff42d758

@ -1,10 +0,0 @@
image: "archlinux"
iso:
before_script:
- pacman -Sy reflector --noconfirm --needed
- reflector --latest 5 --sort rate --save /etc/pacman.d/mirrorlist
- pacman -Sy sudo base-devel pacman-contrib archiso wget git --noconfirm --needed
script:
- ./build_iso.sh
- cp *.iso /output/. -v

@ -4,7 +4,7 @@ if [[ "$2" == "" ]]; then
else else
WORKDIR="$2" WORKDIR="$2"
if [[ ! -d "$WORKDIR" ]]; then if [[ ! -d "$WORKDIR" ]]; then
mkdir -p "$WORKDIR" mkdir -p "$WORKDIR"
fi fi
fi fi
if [[ "$1" == "--build-iso" ]]; then if [[ "$1" == "--build-iso" ]]; then
@ -18,11 +18,11 @@ elif [[ "$1" == "--build-bootstrap" ]]; then
else else
RESULTCODE=0 RESULTCODE=0
if [[ "$1" == "" ]]; then if [[ "$1" == "" ]]; then
echo "no option given, available options are:" echo "no option given, available options are:"
RESULTCODE=1 RESULTCODE=1
elif [[ "$1" != "--help" ]]; then elif [[ "$1" != "--help" ]]; then
echo "option '$1' not known, available options are:" echo "option '$1' not known, available options are:"
RESULTCODE=1 RESULTCODE=1
fi fi
echo "--build-iso builds a crystal linux iso" echo "--build-iso builds a crystal linux iso"
echo "--build-bootstrap builds a crystal linux rootfs tarball" echo "--build-bootstrap builds a crystal linux rootfs tarball"

Loading…
Cancel
Save