diff options
author | Werner Lemberg <wl@gnu.org> | 2000-11-10 22:43:37 +0000 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2000-11-10 22:43:37 +0000 |
commit | a82cd844fb68d14741725946aa43e31490c8468c (patch) | |
tree | c52ba39cfae4530c873ee2319aadf6ba2eec0635 /builds/unix/freetype-config.in | |
parent | a8df54a3ec78c8f2adc26578421f746f78568460 (diff) | |
download | freetype2-a82cd844fb68d14741725946aa43e31490c8468c.tar.gz |
Small fixes and formatting.
Diffstat (limited to 'builds/unix/freetype-config.in')
-rw-r--r-- | builds/unix/freetype-config.in | 67 |
1 files changed, 34 insertions, 33 deletions
diff --git a/builds/unix/freetype-config.in b/builds/unix/freetype-config.in index 0b2f0bd68..8575a0736 100644 --- a/builds/unix/freetype-config.in +++ b/builds/unix/freetype-config.in @@ -6,7 +6,7 @@ exec_prefix_set=no usage() { - cat <<EOF + cat <<EOF Usage: freetype-config [OPTIONS] [LIBRARIES] Options: [--prefix[=DIR]] @@ -15,11 +15,11 @@ Options: [--libs] [--cflags] EOF - exit $1 + exit $1 } if test $# -eq 0; then - usage 1 1>&2 + usage 1 1>&2 fi @@ -30,39 +30,40 @@ while test $# -gt 0; do esac case $1 in - --prefix=*) - prefix=$optarg - if test $exec_prefix_set = no ; then - exec_prefix=$optarg - fi - ;; - --prefix) - echo_prefix=yes - ;; - --exec-prefix=*) - exec_prefix=$optarg - exec_prefix_set=yes - ;; - --exec-prefix) - echo_exec_prefix=yes - ;; - --version) - echo @VERSION@ - exit 0 - ;; - --cflags) - echo_cflags=yes - ;; - --libs) - echo_libs=yes - ;; - *) - usage 1 1>&2 - ;; + --prefix=*) + prefix=$optarg + ;; + --prefix) + echo_prefix=yes + ;; + --exec-prefix=*) + exec_prefix=$optarg + exec_prefix_set=yes + ;; + --exec-prefix) + echo_exec_prefix=yes + ;; + --version) + echo @VERSION@ + exit 0 + ;; + --cflags) + echo_cflags=yes + ;; + --libs) + echo_libs=yes + ;; + *) + usage 1 1>&2 + ;; esac shift done +if test "$exec_prefix_set" = "no"; then + exec_prefix=$prefix +fi + if test "$echo_prefix" = "yes"; then echo $prefix fi @@ -78,4 +79,4 @@ if test "$echo_libs" = "yes"; then echo -L@libdir@ $libs fi - +# EOF |