autogen.sh (371B)
1 #!/bin/sh 2 3 if command -v autoreconf; then 4 opt="-i -f -W all,error" 5 6 for i in "$@"; do 7 case "$i" in 8 -v) 9 opt="${opt} -v" 10 ;; 11 esac 12 done 13 14 # shellcheck disable=SC2086 15 exec autoreconf $opt 16 fi 17 18 set -e 19 20 # Run this to generate all the initial makefiles, etc. 21 aclocal -I m4 && \ 22 autoheader && \ 23 autoconf && \ 24 automake --add-missing --copy