diff --git a/packaging/android/qmake-build.sh b/packaging/android/qmake-build.sh index 564c978a7..229f3e0d2 100755 --- a/packaging/android/qmake-build.sh +++ b/packaging/android/qmake-build.sh @@ -85,7 +85,7 @@ pushd "$BUILDROOT"/subsurface-mobile-build # set up the Subsurface versions by hand CANONICALVERSION=$("$SUBSURFACE_SOURCE"/scripts/get-version) -echo "#define CANONICAL_VERSION_STRING \"$CANONICALVERSION\"" >> ssrf-version.h +echo "#define CANONICAL_VERSION_STRING \"$CANONICALVERSION\"" > ssrf-version.h CANONICALVERSION_4=$("$SUBSURFACE_SOURCE"/scripts/get-version 4) echo "#define CANONICAL_VERSION_STRING_4 \"$CANONICALVERSION_4\"" >> ssrf-version.h popd diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh index 35fabfd57..ff374a12e 100755 --- a/packaging/ios/build.sh +++ b/packaging/ios/build.sh @@ -78,7 +78,7 @@ fi # set up the Subsurface versions by hand CANONICALVERSION=$("$SUBSURFACE_SOURCE"/scripts/get-version) -echo "#define CANONICAL_VERSION_STRING \"$CANONICALVERSION\"" >> "$SUBSURFACE_SOURCE"/ssrf-version.h +echo "#define CANONICAL_VERSION_STRING \"$CANONICALVERSION\"" > "$SUBSURFACE_SOURCE"/ssrf-version.h CANONICALVERSION_4=$("$SUBSURFACE_SOURCE"/scripts/get-version 4) echo "#define CANONICAL_VERSION_STRING_4 \"$CANONICALVERSION_4\"" >> "$SUBSURFACE_SOURCE"/ssrf-version.h