Commit 32ea941c authored by THIBAULT Samuel's avatar THIBAULT Samuel

fix posix compatibility

parent 79eb1a99
......@@ -155,18 +155,18 @@ while [ 0 -lt $# ]; do
done
#end the qmake options
if [ $config_specified == 1 ]; then
if [ $config_specified = 1 ]; then
config="$config\"";
else
config="$config release\"";
fi
if [ $with_otf == 1 -a "$includepath" = "\"INCLUDEPATH+=" ]; then
if [ $with_otf = 1 -a "$includepath" = "\"INCLUDEPATH+=" ]; then
includepath="$includepath general/otf/otflib/"
dependpath="$dependpath general/otf/otflib/"
fi
if [ $with_otf == 1 -a "$libs" = "\"LIBS+=" ]; then
if [ $with_otf = 1 -a "$libs" = "\"LIBS+=" ]; then
libs="$libs general/otf/otflib/.libs/libotf.a -Lgeneral/otf/otflib/.libs"
fi
......@@ -208,7 +208,7 @@ cat > "$makefile" <<EOF
########################################################################
EOF
if [ $with_otf == 1 -a $with_otf_default == 1 ]; then # set the directory... should be decided by the user, we will see after how to do beautiful options :)
if [ $with_otf = 1 -a $with_otf_default = 1 ]; then # set the directory... should be decided by the user, we will see after how to do beautiful options :)
cat >> "$makefile" <<EOF
OTFLIB_DIR = ./src/general/otf
......@@ -275,7 +275,7 @@ clean:
cleanall: clean
EOF
if [ $with_otf == 1 -a $with_otf_default == 1 ]; then
if [ $with_otf = 1 -a $with_otf_default = 1 ]; then
cat >>"$makefile" <<EOF
make -C \$(OTFLIB_DIR) clean
EOF
......@@ -288,7 +288,7 @@ fi
distclean: cleanall
EOF
if [ $with_otf == 1 ]; then
if [ $with_otf = 1 ]; then
cat >>"$makefile" <<EOF
make -C \$(OTFLIB_DIR) distclean
EOF
......@@ -300,7 +300,7 @@ fi
EOF
if [ $with_otf == 1 -a $with_otf_default == 1 ]; then
if [ $with_otf = 1 -a $with_otf_default = 1 ]; then
echo >&2 "Configuration of the otf library"
cd $OTFLIB_DIR && ./configure
fi
......
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