mirror of
https://github.com/elmasas/lcs-recomp
synced 2026-10-22 15:56:33 -04:00
25 lines
563 B
Bash
Executable File
25 lines
563 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
case "$1" in
|
|
"archlinux")
|
|
if [ ! -d "ccache-archlinux" ]; then
|
|
mkdir "ccache-archlinux"
|
|
fi
|
|
docker compose up --pull never --remove-orphans build-archlinux
|
|
;;
|
|
"debian")
|
|
if [ ! -d "ccache-debian" ]; then
|
|
mkdir "ccache-debian"
|
|
fi
|
|
docker compose up --pull never --remove-orphans build-debian
|
|
;;
|
|
*)
|
|
printf "\nAvailable options:\n\n"
|
|
printf "\tarchlinux\tcompile the source code on Arch Linux\n"
|
|
printf "\tdebian\t\tcompile the source code on Debian\n"
|
|
printf "\nUsage: %s <option>\n\n" "$0"
|
|
exit 0
|
|
;;
|
|
esac
|