-
Notifications
You must be signed in to change notification settings - Fork 11
/
bump.sh
20 lines (17 loc) · 950 Bytes
/
bump.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
next_version="12.4"
files=`find . -name '*.csproj'`
subset=`grep -l -e Antlr4BuildTasks $files`
for i in $subset
do
cat $i | sed -e "s%\"Antlr4BuildTasks\" Version=\".*\"%\"Antlr4BuildTasks\" Version=\"$next_version\"%" > asdfasdf
mv asdfasdf $i
done
cat Antlr4BuildTasks/Antlr4BuildTasks.csproj | sed -e "s%<AssemblyVersion>[^<]*%<AssemblyVersion>$next_version%" > asdfasdf
mv asdfasdf Antlr4BuildTasks/Antlr4BuildTasks.csproj
cat Antlr4BuildTasks/Antlr4BuildTasks.csproj | sed -e "s%<FileVersion>[^<]*%<FileVersion>$next_version%" > asdfasdf
mv asdfasdf Antlr4BuildTasks/Antlr4BuildTasks.csproj
cat Antlr4BuildTasks/Antlr4BuildTasks.csproj | sed -e "s%<Version>[^<]*%<Version>$next_version%" > asdfasdf
mv asdfasdf Antlr4BuildTasks/Antlr4BuildTasks.csproj
cat Antlr4BuildTasks/Antlr4BuildTasks.csproj | sed -e "s%<PackageReleaseNotes>[^<]*%<PackageReleaseNotes>$next_version%" > asdfasdf
mv asdfasdf Antlr4BuildTasks/Antlr4BuildTasks.csproj