summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-05-19 21:19:00 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-05-19 21:19:00 +0200
commit5dfb7a3634fcd0f7b63e03d5cbd170aa4a95b148 (patch)
tree53c4e7e1ea9df9266da5decef2a466269133a59a
parent033349d31c9b4a558ca5ed5b88cd8e0a4bb5b762 (diff)
downloadabuild-5dfb7a3634fcd0f7b63e03d5cbd170aa4a95b148.tar.gz
abuild-5dfb7a3634fcd0f7b63e03d5cbd170aa4a95b148.tar.bz2
abuild-5dfb7a3634fcd0f7b63e03d5cbd170aa4a95b148.tar.xz
abuild-5dfb7a3634fcd0f7b63e03d5cbd170aa4a95b148.zip
newapkbuild: fix build_cmake template - escape parameters
-rw-r--r--newapkbuild.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/newapkbuild.in b/newapkbuild.in
index bbe7a44..520a60e 100644
--- a/newapkbuild.in
+++ b/newapkbuild.in
@@ -59,8 +59,7 @@ build_cmake() {
sed -i -e 's/^\(makedepends="\)/\1cmake /' APKBUILD
cat >>APKBUILD<<__EOF__
- if [ "$CBUILD" != "$CHOST" ]
- then
+ if [ "\$CBUILD" != "\$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \\
@@ -70,7 +69,7 @@ build_cmake() {
-DCMAKE_BUILD_TYPE=Release \\
-DCMAKE_CXX_FLAGS="\$CXXFLAGS" \\
-DCMAKE_C_FLAGS="\$CFLAGS" \\
- ${CMAKE_CROSSOPTS}
+ \${CMAKE_CROSSOPTS}
make
__EOF__
}