Add script for renaming version numbers for a new release

This commit is contained in:
Christoph Atteneder 2019-02-20 17:47:10 +01:00
parent b4b5d0bb12
commit 57c8e9006a
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B

View File

@ -0,0 +1,23 @@
#!/bin/bash
cd $(dirname $0)/../../../
oldVersion=0.9.3
newVersion=0.9.4
find . -type f \( -name "finalize.sh" \
-o -name "create_app.sh" \
-o -name "build.gradle" \
-o -name "release.bat" \
-o -name "package.bat" \
-o -name "release.sh" \
-o -name "package.sh" \
-o -name "version.txt" \
-o -name "Dockerfile" \
\) -exec sed -i '' s/"$oldVersion-SNAPSHOT"/$newVersion/ {} +
find . -type f \( -name "Info.plist" \
-o -name "SeedNodeMain.java" \
-o -name "Version.java" \
\) -exec sed -i '' s/$oldVersion/$newVersion/ {} +