add --no-postinstall and --no-installdocs arguments to configure

parent 24f5ae2e
......@@ -29,10 +29,6 @@ export PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
export_result ()
{
if [[ -e $PWD/.configure/results ]]; then
rm $PWD/.configure/results
fi
echo -e "MODE=\"$MODE\"\
\nPREFIX=\"$PREFIX\"\
\nDATADIR=\"$DATADIR/bashstyle-ng/\"\
......
......@@ -118,9 +118,19 @@ maintainer_message () {
end_message () {
export PATH="$OLDPATH"
echo -e "\n${YELLOW}Prefix:${WHITE} $PREFIX\
\n${YELLOW}Python:${WHITE} $PYTHON\
\n${YELLOW}Dirinfo Wrappers:${WHITE} $DIRINFO_ENABLE\n"
echo -e "\n${BLUE}Notes from configure:\
\n\n${YELLOW}Prefix:${WHITE}\t\t\t$PREFIX\
\n${YELLOW}Python:${WHITE}\t\t\t$PYTHON\
\n${YELLOW}Dirinfo Wrappers:${WHITE}\t$DIRINFO_ENABLE"
if [[ ${DISABLE_POSTINSTALL} ]]; then
echo -e "${YELLOW}Post-Install Tasks:${WHITE}\tDisabled"
else echo -e "${YELLOW}Post-Install Tasks:${WHITE}\tEnabled"
fi
if [[ ${DISABLE_INSTALLDOCS} ]]; then
echo -e "${YELLOW}Install Documentation:${WHITE}\tNo"
else echo -e "${YELLOW}Install Documentation:${WHITE}\tYes"
fi
echo ""
tput sgr0
}
......@@ -139,6 +149,8 @@ help_message () {
\n${ORANGE}--profiledir=<profiledir>${WHITE} *|${GREEN} Change profile path (default: /etc/)\
\n${ORANGE}--girpath=<girpath>${WHITE} *|${GREEN} Where to look G-I typelibs (default: /usr/lib/girepository-1.0/)\
\n${ORANGE}--python=<python>${WHITE} *|${GREEN} Make BashStyle-NG use a specific python (default: /usr/bin/python)\
\n${ORANGE}--no-postinstall *|${GREEN} Disable post-installation tasks (for package-maintainers)\
\n${ORANGE}--no-installdocs *|${GREEN} Disable installation of docs (for package-maintainers)\
\n${ORANGE}--quiet${WHITE} *|${GREEN} Only display warnings, failures and results\
\n${ORANGE}--dirinfo=<bool>${WHITE} *|${GREEN} true: enable dirinfo wrappers, false: disable (default: disable)" | column -t -s \*
echo
......
......@@ -7,6 +7,8 @@ for mod in ${MODULES[@]}; do
source $PWD/.configure/$mod
done
rm -f $PWD/.configure/results
xcount=0
pcount=$#
......@@ -59,6 +61,16 @@ while [[ $xcount -lt $pcount ]]; do
--help )
MODE=help
;;
--no-postinstall )
DISABLE_POSTINSTALL=1
echo "DISABLE_POSTINSTALL=1" >> $PWD/.configure/results
;;
--no-installdocs )
DISABLE_INSTALLDOCS=1
echo "DISABLE_INSTALLDOCS=1" >> $PWD/.configure/results
;;
esac
shift
xcount=$(($xcount+1))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment