Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
feat(releaseInfo): add json file covering repository info
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Oct 19, 2018
1 parent 2ec979a commit 37d83ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions release.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version": "2.0.4",
"date": "2018-10-19"
}
3 changes: 3 additions & 0 deletions updateVersion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
# version format: X.Y.Z
newversion="$1";
branch="$2";
date="$(date +'%Y-%m-%d')";

if [ "$branch" = "master" ]; then
sed -i "s/\$module_version = \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/\$module_version = \"${newversion}\"/g" ispapibackorder.php
sed -i "s/\"version\": \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/\"version\": \"${newversion}\"/g" release.json
sed -i "s/\"date\": \"[0-9]\+-[0-9]\+-[0-9]\+\"/\"date\": \"${date}\"/g" release.json
fi;

0 comments on commit 37d83ab

Please sign in to comment.