about summary refs log tree commit diff
path: root/buildtools/config_template
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-08-19 03:12:28 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-08-19 03:12:28 +0000
commit1fd361a1ea06e44286c213ca1f814f49306fdc43 (patch)
tree64c8c96cf54d8718847339a403e5e67b922e8c3f /buildtools/config_template
downloadnetpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.tar.gz
netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.tar.xz
netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.zip
Create Subversion repository
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'buildtools/config_template')
-rw-r--r--buildtools/config_template52
1 files changed, 52 insertions, 0 deletions
diff --git a/buildtools/config_template b/buildtools/config_template
new file mode 100644
index 00000000..04a32079
--- /dev/null
+++ b/buildtools/config_template
@@ -0,0 +1,52 @@
+@ This is a template to be processed into a Bourne shell program.
+@
+#!/bin/sh
+
+# This program was generated by the Netpbm installer.  Its purpose is to
+# allow other programs to find out about how Netpbm is installed on this
+# system.  This program is supposed to be invoked via the PATH. 
+
+@ The following @xxx@ strings get replaced by Installnetpbm when it turns
+@ this template into an actual Bourne shell program.
+version='@VERSION@'
+datadir='@DATADIR@'
+linkdir='@LINKDIR@'
+includedir='@INCLUDEDIR@'
+bindir='@BINDIR@'
+
+    
+if test $# -eq 0; then
+    echo >&2 "You need to specify one of these options:"
+    echo >&2 "  --version"
+    echo >&2 "  --datadir"
+    echo >&2 "  --linkdir"
+    echo >&2 "  --includedir"
+    echo >&2 "  --bindir"
+    exit 100
+    fi
+
+case "$1" in
+    --version)
+      echo $version
+      exit 0
+      ;;
+    --datadir)
+      echo $datadir
+      exit 0
+      ;;
+    --linkdir)
+      echo $linkdir
+      exit 0
+      ;;
+    --includedir)
+      echo $includedir
+      exit 0
+      ;;
+    --bindir)
+      echo $bindir
+      exit 0
+      ;;
+    *)
+      echo >&2 "Unrecognized option to $0: $1"
+      exit 100
+    esac