mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 13:29:14 +02:00
Allow to impose variable value as parameter (like AWK, as mawk from Makefile does not work)
git-svn-id: trunk@28950 -
This commit is contained in:
parent
d2e649e048
commit
3530328cfd
@ -145,6 +145,13 @@ if [ "${1#libdir=}" != "$1" ]; then
|
|||||||
echo "libdir is set to \"$libdir\""
|
echo "libdir is set to \"$libdir\""
|
||||||
opt_handled=1
|
opt_handled=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${1//=/ }" != "$1" ]; then
|
||||||
|
# Some variable set explicitly
|
||||||
|
echo "Evaluating $1"
|
||||||
|
export $1
|
||||||
|
opt_handled=1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Try to handle all command line options
|
# Try to handle all command line options
|
||||||
|
Loading…
Reference in New Issue
Block a user