| 1 | #!/bin/sh |
| 2 | # Run this to generate all the initial makefiles, etc. |
| 3 | |
| 4 | # shellcheck disable=SC2006 |
| 5 | srcdir=`dirname "$0"` |
| 6 | test -z "$srcdir" && srcdir=. |
| 7 | |
| 8 | PKG_NAME="gutenprint" |
| 9 | |
| 10 | (test -f "$srcdir/configure.ac") || { |
| 11 | echo "**Error**: Directory "\`$srcdir\'" does not look like the top-level directory" |
| 12 | exit 1 |
| 13 | } |
| 14 | |
| 15 | if test $# -gt 0 ; then |
| 16 | case "$1" in |
| 17 | -h|--help|--help=*) |
| 18 | if test -f "$srcdir/configure" ; then |
| 19 | exec "$srcdir/configure" "$1" |
| 20 | fi ;; |
| 21 | *) ;; |
| 22 | esac |
| 23 | fi |
| 24 | |
| 25 | # shellcheck source=./scripts/autogen.sh |
| 26 | . $srcdir/scripts/autogen.sh |