File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed
Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh --
2+ #
3+ # This script sets version number entries in various files in the BlocklyPropClient project.
4+ #
5+ # Usage: $ ./set_version 1.2.3
6+
7+ #
8+ # Error if no version string declared
9+ #
10+ if [ $1 X == X ]
11+ then
12+ echo " ERROR: Must specify a version number. Ex: \$ $0 1.2.3"
13+ exit 1
14+ fi
15+
16+
17+ #
18+ # Get version string
19+ #
20+ VERSION=$1
21+
222
323#
424# FindAndSetVersion function
1333function FindAndSetVersion {
1434if grep -q -E ${VERSIONPATTERN} ${VERSIONFILE} ; then
1535 if sed -i.bak -E " s/${VERSIONPATTERN} /${VERSIONSTRING} /" ${VERSIONFILE} ; then
16- echo " Updated file \" ${VERSIONFILE} \" to include \" ${VERSIONSTRING} \" "
36+ echo " Updated file \" ${VERSIONFILE} \" to include: ${VERSIONSTRING} "
1737 fi
1838else
1939 echo " ERROR: Unable to find version string in file \" ${VERSIONFILE} \" "
2040fi
2141}
2242
23- VERSION=0.5.3
24-
2543#
2644# Adjust BlocklyPropClient.py file
2745#
You can’t perform that action at this time.
0 commit comments