Skip to content
Snippets Groups Projects
Commit 8f1c047e authored by Christian Engwer's avatar Christian Engwer
Browse files

expand ~ in opt-file parameters

[[Imported from SVN: r4670]]
parent 19a0d24a
No related branches found
No related tags found
No related merge requests found
......@@ -220,6 +220,7 @@ while test $# -gt 0; do
# stolen from configure...
# when no option is set, this returns an error code
arg=`expr "x$option" : 'x[^=]*=\(.*\)'`
arg=$(eval "echo $arg")
set -e
# switch
......@@ -231,7 +232,7 @@ while test $# -gt 0; do
echo
exit 1;
fi
OPTS_FILE=$(cd $(dirname $arg); pwd)/$(basename $arg)
OPTS_FILE=$(cd $(dirname $(readlink -f $arg)); pwd)/$(basename $arg)
if ! test -r "$OPTS_FILE"; then
usage
echo "ERROR: could not read opts file \"$OPTS_FILE\""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment