aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-08-20 17:58:31 +0200
committerMattias Andrée <maandree@operamail.com>2012-08-20 17:58:31 +0200
commit9ef7914456a99e0c9a8e4d997bddf26aac79abc9 (patch)
tree638eba461f8608784cdbff279d934e282b95ae4a
parentaa952d266ada57d0d7093df6b1b9421318c5654f (diff)
downloadponysay-9ef7914456a99e0c9a8e4d997bddf26aac79abc9.tar.gz
ponysay-9ef7914456a99e0c9a8e4d997bddf26aac79abc9.tar.bz2
ponysay-9ef7914456a99e0c9a8e4d997bddf26aac79abc9.zip
./configure --shell=SHELL and ./configure --without-info-install
-rwxr-xr-xconfigure60
-rw-r--r--manuals/ponysay.texinfo7
2 files changed, 45 insertions, 22 deletions
diff --git a/configure b/configure
index 1c63365..fd0a7fe 100755
--- a/configure
+++ b/configure
@@ -3,6 +3,7 @@
PREFIX="/usr"
INFODESC=\''My Little Ponies for your terminal'\'
+SHELL="env bash"
completions='completion/bash-completion.sh completion/fish-completion.fish completion/zsh-completion.zsh'
shareDirs='ponies ttyponies quotes'
@@ -54,6 +55,7 @@ function getcompfile()
installPdf=''
installInfo=' install-info'
+installInfoInstall=' install-info-install'
installMan=' install-man'
installManEs=''
installBash=' install-bash'
@@ -68,18 +70,22 @@ for arg in "$@"; do
PREFIX="$val"
elif [ "$opt" = '--info-desc' ]; then
INFODESC=\'"$(sed -e s/\'/\''\\'\'\'/g <<<"$val")"\'
+ elif [ "$opt" = '--shell' ]; then
+ SHELL="$val"
- elif [ "$opt" = '--with-pdf' ]; then installPdf=' install-pdf'
- elif [ "$opt" = '--without-info' ]; then installInfo=''
- elif [ "$opt" = '--without-man' ]; then installMan=''
- elif [ "$opt" = '--with-man-es' ]; then installManEs=' install-man-es'
- elif [ "$opt" = '--without-bash' ]; then installBash=''
- elif [ "$opt" = '--without-fish' ]; then installFish=''
- elif [ "$opt" = '--without-zsh' ]; then installZsh=''
+ elif [ "$opt" = '--with-pdf' ]; then installPdf=' install-pdf'
+ elif [ "$opt" = '--without-info' ]; then installInfo=''
+ elif [ "$opt" = '--without-info-install' ]; then installInfoInstall=''
+ elif [ "$opt" = '--without-man' ]; then installMan=''
+ elif [ "$opt" = '--with-man-es' ]; then installManEs=' install-man-es'
+ elif [ "$opt" = '--without-bash' ]; then installBash=''
+ elif [ "$opt" = '--without-fish' ]; then installFish=''
+ elif [ "$opt" = '--without-zsh' ]; then installZsh=''
elif [ "$opt" = "--everything" ]; then
installPdf=' install-pdf'
installInfo=' install-info'
+ installInfoInstall=' install-info-install'
installMan=' install-man'
installManEs=' install-man-es'
installBash=' install-bash'
@@ -91,8 +97,12 @@ for arg in "$@"; do
fi
done
+if [ "$installInfo" = '' ]; then
+ installInfoInstall=''
+fi
+
compileMethods='core quotes manpages ponysaycompletion ponythinkcompletion'
-installMethods='install-min'"$installPdf$installInfo$installMan$installManEs$installBash$installFish$installZsh"
+installMethods='install-min'"$installPdf$installInfo$installInfoInstall$installMan$installManEs$installBash$installFish$installZsh"
if [ ! "$installInfo" = '' ]; then
compileMethods="$compileMethods infomanual"
fi
@@ -132,28 +142,31 @@ function thinkCompletion()
echo "PREFIX = $PREFIX, edit with option --prefix=PREFIX"
echo "INFODESC = $INFODESC, edit with option --info-desc=INFODESC"
+echo "SHELL = $SHELL, edit with option --shell=PREFIX"
echo
-[ ! "$installPdf" = '' ] && echo "Installing PDF manual"
-[ ! "$installInfo" = '' ] && echo "Installing info manual, add option --without-info to skip"
-[ ! "$installMan" = '' ] && echo "Installing English manpage manual, add option --without-man to skip"
-[ ! "$installManEs" = '' ] && echo "Installing Spanish manpage manual"
-[ ! "$installBash" = '' ] && echo "Installing autocompletion for GNU Bash, add option --without-bash to skip"
-[ ! "$installFish" = '' ] && echo "Installing autocompletion for fish, add option --without-fish to skip"
-[ ! "$installZsh" = '' ] && echo "Installing autocompletion for zsh, add option --without-zsh to skip"
+[ ! "$installPdf" = '' ] && echo "Installing PDF manual"
+[ ! "$installInfo" = '' ] && echo "Installing info manual, add option --without-info to skip"
+[ ! "$installInfoInstall" = '' ] && echo "Installing info manual with info-install, add option --without-info to skip"
+[ ! "$installMan" = '' ] && echo "Installing English manpage manual, add option --without-man to skip"
+[ ! "$installManEs" = '' ] && echo "Installing Spanish manpage manual"
+[ ! "$installBash" = '' ] && echo "Installing autocompletion for GNU Bash, add option --without-bash to skip"
+[ ! "$installFish" = '' ] && echo "Installing autocompletion for fish, add option --without-fish to skip"
+[ ! "$installZsh" = '' ] && echo "Installing autocompletion for zsh, add option --without-zsh to skip"
echo
-[ ! "$installPdf" = '' ] || echo "Skipping PDF manual, add option --with-pdf to install"
-[ ! "$installInfo" = '' ] || echo "Skipping info manual"
-[ ! "$installMan" = '' ] || echo "Skipping English manpage manual"
-[ ! "$installManEs" = '' ] || echo "Skipping Spanish manpage manual, add option --with-man-es to install"
-[ ! "$installBash" = '' ] || echo "Skipping autocompletion for GNU Bash"
-[ ! "$installFish" = '' ] || echo "Skipping autocompletion for fish"
-[ ! "$installZsh" = '' ] || echo "Skipping autocompletion for zsh"
+[ ! "$installPdf" = '' ] || echo "Skipping PDF manual, add option --with-pdf to install"
+[ ! "$installInfo" = '' ] || echo "Skipping info manual"
+[ ! "$installMan" = '' ] || echo "Skipping English manpage manual"
+[ ! "$installManEs" = '' ] || echo "Skipping Spanish manpage manual, add option --with-man-es to install"
+[ ! "$installBash" = '' ] || echo "Skipping autocompletion for GNU Bash"
+[ ! "$installFish" = '' ] || echo "Skipping autocompletion for fish"
+[ ! "$installZsh" = '' ] || echo "Skipping autocompletion for zsh"
echo
function makeMakefile()
{
+ echo 'SHELL='\'"$SHELL"\'
echo 'PREFIX='\'"$PREFIX"\'
echo 'INSTALLDIR="$(DESTDIR)$(PREFIX)"'
echo 'SED_PREFIX=$$(sed -e '\''s/\//\\\//g'\'' <<<$(PREFIX))'
@@ -240,6 +253,9 @@ function makeMakefile()
echo -en '\t' ; echo 'mkdir -p "$(INSTALLDIR)/share/info"'
echo -en '\t' ; echo 'install "ponysay.info.gz" "$(INSTALLDIR)/share/info/ponysay.info.gz"'
echo -en '\t' ; echo 'install "ponysay.info.gz" "$(INSTALLDIR)/share/info/ponythink.info.gz"'
+ echo
+
+ echo 'install-info-install: install-info'
echo -en '\t' ; echo 'install-info --dir-file="$(INSTALLDIR)/share/info/dir" --entry="Miscellaneous" --description='"$INFODESC"' "$(INSTALLDIR)/share/info/ponysay.info.gz"'
echo -en '\t' ; echo 'install-info --dir-file="$(INSTALLDIR)/share/info/dir" --entry="Miscellaneous" --description='"$INFODESC"' "$(INSTALLDIR)/share/info/ponythink.info.gz"'
echo
diff --git a/manuals/ponysay.texinfo b/manuals/ponysay.texinfo
index eb4074d..f600522 100644
--- a/manuals/ponysay.texinfo
+++ b/manuals/ponysay.texinfo
@@ -618,6 +618,7 @@ everything add the option @command{--everything} when running @command{./configu
@cindex @command{--without-man}
@cindex manpage, without
@cindex @command{--without-info}
+@cindex @command{--without-info-install}
@cindex @command{info} manual, without
@cindex @command{--with-man-LANG}
@cindex manpage translations
@@ -629,6 +630,8 @@ running @command{./configure}. To install a manpage translation add
Currently the only translation is Spanish with the language code @code{es}.
If you do not want the English manpage add the option @command{--without-man}.
If you do not want the @command{info} manual add the option @command{--without-info}.
+If you are installing the @command{info} manual but are not privileged to execute
+@command{info-install} add the option @command{--without-info-install}.
The following argumentless options are also recognised:
@@ -664,6 +667,10 @@ If you are not using @command{--without-info} you can add
@command{--info-desc=DESCRIPTION} to specify the description @command{info}
which provide when listing commands.
+@cindex @command{--shell=SHELL}
+By default @command{bash} is in the make file, if you want to use another shell
+add the option @command{--shell=SHELL}.
+
@node Arch Linux
@section Arch Linux