diff options
author | Christian Pointner <equinox@helsinki.at> | 2009-12-19 16:20:01 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2009-12-19 16:20:01 (GMT) |
commit | d3ffc8927ec89893fee9671c1aa1398847035b54 (patch) | |
tree | a2a547f74229005538383dd4a67ae62a4546d76d /configure | |
parent | 3f70847018870884d611fa86a1d9643c7e2a9816 (diff) |
fixed manpage problem
added install examples target
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -33,6 +33,8 @@ BINDIR='' ETCDIR='' MANDIR='' INSTALLMANPAGE=1 +EXAMPLESDIR='' +INSTALLEXAMPLES=1 print_usage() { echo "configure --help print this" @@ -42,6 +44,8 @@ print_usage() { echo " --sysconfdir=<DIR> the path to the system configuration directory (default: $PREFIX/etc" echo " --mandir=<DIR> the path to the system man pages (default: $PREFIX/share/man)" echo " --no-manpage dont't install manpage" + echo " --examplesdir=<DIR> the path to the examples files (default: $PREFIX/share/examples)" + echo " --no-examples dont't install example files" } for arg @@ -65,6 +69,12 @@ do --no-manpage) INSTALLMANPAGE=0 ;; + --examplesdir=*) + EXAMPLESDIR=${arg#--examplesdir=} + ;; + --no-examples) + INSTALLEXAMPLES=0 + ;; --ebuild-compat) EBUILD_COMPAT=1 ;; @@ -115,6 +125,10 @@ if [ -z "$MANDIR" ]; then MANDIR=$PREFIX/share/man fi +if [ -z "$EXAMPLESDIR" ]; then + EXAMPLESDIR=$PREFIX/share/examples +fi + cat >> include.mk <<EOF # this file was created automatically # do not edit this file directly @@ -138,4 +152,11 @@ else echo "not installing manpage" fi +if [ $INSTALLEXAMPLES -eq 1 ]; then + echo "EXAMPLESDIR := $EXAMPLESDIR" >> include.mk + echo "installing example files" +else + echo "not installing example files" +fi + exit 0 |