Skip to content
Snippets Groups Projects
Commit 89cda8a5 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Another go at fixing the $(OS) expansion.

Avoid "... ${FOO:-`...`} ..." since there apparently are sh compat
issues whether or not " must be escaped inside the ${...}.
parent 63ba77a4
Branches
Tags
No related merge requests found
......@@ -19,7 +19,7 @@
# Tip: Remove "-r" from the line below if you don't want to rebuild
# from scratch every time you upgrade the kernel.
OS=$${PIKE_BUILD_OS:-`uname -s -r -m|sed "s/ /-/g"|tr "[A-Z]" "[a-z]"|tr "/()" "___"`}
OS=`if [ -n \"$$PIKE_BUILD_OS\" ]; then echo \"$$PIKE_BUILD_OS\"; else uname -s -r -m|sed \"s/ /-/g\"|tr \"[A-Z]\" \"[a-z]\"|tr \"/()\" \"___\"; fi`
VPATH=.
BUILDDIR=build/$(OS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment