docker-makepkg/entrypoint.sh

19 lines
446 B
Bash
Executable file

#!/bin/bash
echo args are "$@"
pwd
test "$1" = "sh" && exec sh
test "$2" = '--clean' && rm -rf "${A##*/}" || true
test -d "${1##*/}" && echo "CLONED ALREADY set --clean as second arg to remove" || git clone "$1" "${1##*/}"
cd "${1##*/}"
read -t 3 -p "modify stuff prior to build?[y/N]" -N1 YES
test "$YES" = "y" && {
bash
read -t 3 -p "continue build?[Y/n]" -N1 NO
test "$NO" = "n" && exit 0
}
makepkg --syncdeps --noconfirm