Protect shell variables from spaces.

parent eb15a6dd
......@@ -44,22 +44,22 @@ f_make=NO
while test -n "$1"; do
case $1 in
--prefix | -prefix)
shift; f_prefix="$1" ; f_bindir=$1/bin ; f_datadir=$1/share/cb2bib ; f_desktopdatadir=$1/share/applications ; f_icondir=$1/share/pixmaps
shift; f_prefix="$1" ; f_bindir="$1/bin" ; f_datadir="$1/share/cb2bib" ; f_desktopdatadir="$1/share/applications" ; f_icondir="$1/share/pixmaps"
;;
--bindir | -bindir)
shift; unset f_prefix ; f_bindir=$1
shift; unset f_prefix ; f_bindir="$1"
;;
--datadir | -datadir)
shift; unset f_prefix ; f_datadir=$1/cb2bib
shift; unset f_prefix ; f_datadir="$1/cb2bib"
;;
--desktopdatadir | -desktopdatadir)
shift; unset f_prefix ; f_desktopdatadir=$1
shift; unset f_prefix ; f_desktopdatadir="$1"
;;
--icondir | -icondir)
shift; unset f_prefix ; f_icondir=$1
shift; unset f_prefix ; f_icondir="$1"
;;
--qmakepath | -qmakepath)
shift; unset f_qmake ; f_qmake=$1
shift; unset f_qmake ; f_qmake="$1"
;;
-h | -help | --help)
f_help=y
......
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