forked from cytoscape/cytoscape-impl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhotfix_create.sh
More file actions
executable file
·42 lines (32 loc) · 805 Bytes
/
hotfix_create.sh
File metadata and controls
executable file
·42 lines (32 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
targetversion=$1
snapshotversion="$targetversion-SNAPSHOT"
# Add validater here.
echo "============ Hotfix branch generator ===============\n"
echo "Current branch is \n$(git branch -v)"
echo "Updating pom version numbers to $targetversion"
#git checkout master
#git flow hotfix start $targetversion
## Need to change impl-parent version ONLY, not children.
#mvn versions:set -DnewVersion=$snapshotversion
targetdir=(
"ding-impl"
"event-impl"
"io-impl"
"model-impl"
"psi-mi-impl"
"session-impl"
"viewmodel-impl"
"vizmap-impl"
"work-swing-impl"
)
for item in ${targetdir[@]}
do
echo "Fixing: $item"
cd $item
mvn -N versions:update-child-modules
cd ..
done
#mvn -N versions:update-child-modules
mvn versions:commit
echo "\nDone! Do not forget to commit & push the changes."