Shell script code in Makefiles is now POSIX compliant and is able to be run on dash.

This commit is contained in:
Scott Ehlert 2008-12-07 20:40:31 -06:00
parent 1d07d24054
commit 4bbd74b702
14 changed files with 14 additions and 14 deletions

View File

@ -115,7 +115,7 @@ all: check
$(MAKE) -f Makefile sourcemod $(MAKE) -f Makefile sourcemod
check: check:
if [ "$(ENGSET)" == "false" ]; then \ if [ "$(ENGSET)" = "false" ]; then \
echo "You must supply ENGINE=orangebox or ENGINE=original"; \ echo "You must supply ENGINE=orangebox or ENGINE=original"; \
exit 1; \ exit 1; \
fi fi

View File

@ -106,7 +106,7 @@ all: check
$(MAKE) -f Makefile extension $(MAKE) -f Makefile extension
check: check:
if [ "$(USEMETA)" == "true" ] && [ "$(ENGSET)" == "false" ]; then \ if [ "$(USEMETA)" = "true" ] && [ "$(ENGSET)" = "false" ]; then \
echo "You must supply ENGINE=orangebox or ENGINE=original"; \ echo "You must supply ENGINE=orangebox or ENGINE=original"; \
exit 1; \ exit 1; \
fi fi

View File

@ -106,7 +106,7 @@ all: check
$(MAKE) -f Makefile extension $(MAKE) -f Makefile extension
check: check:
if [ "$(USEMETA)" == "true" ] && [ "$(ENGSET)" == "false" ]; then \ if [ "$(USEMETA)" = "true" ] && [ "$(ENGSET)" = "false" ]; then \
echo "You must supply ENGINE=orangebox or ENGINE=original"; \ echo "You must supply ENGINE=orangebox or ENGINE=original"; \
exit 1; \ exit 1; \
fi fi

View File

@ -105,7 +105,7 @@ all: check
$(MAKE) -f Makefile extension $(MAKE) -f Makefile extension
check: check:
if [ "$(USEMETA)" == "true" ] && [ "$(ENGSET)" == "false" ]; then \ if [ "$(USEMETA)" = "true" ] && [ "$(ENGSET)" = "false" ]; then \
echo "You must supply ENGINE=orangebox or ENGINE=original"; \ echo "You must supply ENGINE=orangebox or ENGINE=original"; \
exit 1; \ exit 1; \
fi fi

View File

@ -105,7 +105,7 @@ all: check
$(MAKE) -f Makefile extension $(MAKE) -f Makefile extension
check: check:
if [ "$(USEMETA)" == "true" ] && [ "$(ENGSET)" == "false" ]; then \ if [ "$(USEMETA)" = "true" ] && [ "$(ENGSET)" = "false" ]; then \
echo "You must supply ENGINE=orangebox or ENGINE=original"; \ echo "You must supply ENGINE=orangebox or ENGINE=original"; \
exit 1; \ exit 1; \
fi fi

View File

@ -111,7 +111,7 @@ all: check
$(MAKE) -f Makefile extension $(MAKE) -f Makefile extension
check: check:
if [ "$(USEMETA)" == "true" ] && [ "$(ENGSET)" == "false" ]; then \ if [ "$(USEMETA)" = "true" ] && [ "$(ENGSET)" = "false" ]; then \
echo "You must supply ENGINE=orangebox or ENGINE=original"; \ echo "You must supply ENGINE=orangebox or ENGINE=original"; \
exit 1; \ exit 1; \
fi fi

View File

@ -105,7 +105,7 @@ all: check
$(MAKE) -f Makefile extension $(MAKE) -f Makefile extension
check: check:
if [ "$(USEMETA)" == "true" ] && [ "$(ENGSET)" == "false" ]; then \ if [ "$(USEMETA)" = "true" ] && [ "$(ENGSET)" = "false" ]; then \
echo "You must supply ENGINE=orangebox or ENGINE=original"; \ echo "You must supply ENGINE=orangebox or ENGINE=original"; \
exit 1; \ exit 1; \
fi fi

View File

@ -109,7 +109,7 @@ all: check
$(MAKE) -f Makefile extension $(MAKE) -f Makefile extension
check: check:
if [ "$(USEMETA)" == "true" ] && [ "$(ENGSET)" == "false" ]; then \ if [ "$(USEMETA)" = "true" ] && [ "$(ENGSET)" = "false" ]; then \
echo "You must supply ENGINE=orangebox or ENGINE=original"; \ echo "You must supply ENGINE=orangebox or ENGINE=original"; \
exit 1; \ exit 1; \
fi fi

View File

@ -132,7 +132,7 @@ all: check
$(MAKE) -f Makefile extension $(MAKE) -f Makefile extension
check: check:
if [ "$(USEMETA)" == "true" ] && [ "$(ENGSET)" == "false" ]; then \ if [ "$(USEMETA)" = "true" ] && [ "$(ENGSET)" = "false" ]; then \
echo "You must supply ENGINE=orangebox or ENGINE=original"; \ echo "You must supply ENGINE=orangebox or ENGINE=original"; \
exit 1; \ exit 1; \
fi fi

View File

@ -105,7 +105,7 @@ all: check
$(MAKE) -f Makefile extension $(MAKE) -f Makefile extension
check: check:
if [ "$(USEMETA)" == "true" ] && [ "$(ENGSET)" == "false" ]; then \ if [ "$(USEMETA)" = "true" ] && [ "$(ENGSET)" = "false" ]; then \
echo "You must supply ENGINE=orangebox or ENGINE=original"; \ echo "You must supply ENGINE=orangebox or ENGINE=original"; \
exit 1; \ exit 1; \
fi fi

View File

@ -108,7 +108,7 @@ all: check
$(MAKE) -f Makefile extension $(MAKE) -f Makefile extension
check: check:
if [ "$(USEMETA)" == "true" ] && [ "$(ENGSET)" == "false" ]; then \ if [ "$(USEMETA)" = "true" ] && [ "$(ENGSET)" = "false" ]; then \
echo "You must supply ENGINE=orangebox or ENGINE=original"; \ echo "You must supply ENGINE=orangebox or ENGINE=original"; \
exit 1; \ exit 1; \
fi fi

View File

@ -107,7 +107,7 @@ all: check
$(MAKE) -f Makefile extension $(MAKE) -f Makefile extension
check: check:
if [ "$(USEMETA)" == "true" ] && [ "$(ENGSET)" == "false" ]; then \ if [ "$(USEMETA)" = "true" ] && [ "$(ENGSET)" = "false" ]; then \
echo "You must supply ENGINE=orangebox or ENGINE=original"; \ echo "You must supply ENGINE=orangebox or ENGINE=original"; \
exit 1; \ exit 1; \
fi fi

View File

@ -89,7 +89,7 @@ all: check
$(MAKE) -f Makefile mms_ext $(MAKE) -f Makefile mms_ext
check: check:
if [ "$(ENGSET)" == "false" ]; then \ if [ "$(ENGSET)" = "false" ]; then \
echo "You must supply ENGINE=orangebox or ENGINE=original"; \ echo "You must supply ENGINE=orangebox or ENGINE=original"; \
exit 1; \ exit 1; \
fi fi

View File

@ -105,7 +105,7 @@ all: check
$(MAKE) -f Makefile extension $(MAKE) -f Makefile extension
check: check:
if [ "$(USEMETA)" == "true" ] && [ "$(ENGSET)" == "false" ]; then \ if [ "$(USEMETA)" = "true" ] && [ "$(ENGSET)" = "false" ]; then \
echo "You must supply ENGINE=orangebox or ENGINE=original"; \ echo "You must supply ENGINE=orangebox or ENGINE=original"; \
exit 1; \ exit 1; \
fi fi