-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate-pom.sh
35 lines (33 loc) · 1.15 KB
/
update-pom.sh
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
#!/bin/bash
#
#
#
paths=("part13-Part13_01.MyFirstApplication/pom.xml"
"part13-Part13_02.ButtonAndLabel/pom.xml"
"part13-Part13_03.ButtonAndTextField/pom.xml"
"part13-Part13_04.BorderPane/pom.xml"
"part13-Part13_05.TextStatistics/pom.xml"
"part13-Part13_06.Notifier/pom.xml"
"part13-Part13_07.TextStatisticsPart2/pom.xml"
"part13-Part13_08.UserTitle/pom.xml"
"part13-Part13_09.MultipleViews/pom.xml"
"part13-Part13_10.Greeter/pom.xml"
"part13-Part13_11.Joke/pom.xml"
"part13-Part13_12.VocabularyPractice/pom.xml"
"part13-Part13_13.TicTacToe/pom.xml"
"part14-Part14_01.Shanghai/pom.xml"
"part14-Part14_02.FinnishParties/pom.xml"
"part14-Part14_03.SavingsCalculator/pom.xml"
"part14-Part14_04.UnfairAdvertisement/pom.xml"
"part14-Part14_05.CyclingStatistics/pom.xml"
"part14-Part14_06.Smiley/pom.xml"
"part14-Part14_07.Collage/pom.xml"
"part14-Part14_08.Hurray/pom.xml"
"part14-Part14_09.Asteroids/pom.xml"
"part14-Part14_10.Database/pom.xml")
for i in ${!paths[@]};
do
#echo ${paths[$i]}
awk 'NR==56{print "\t\t\t\t<configuration>\n\t\t\t\t\t<source>1.8</source>\n\t\t\t\t\t<target>1.8</target>\n\t\t\t\t</configuration>"}1' ${paths[$i]} > temp
mv temp ${paths[$i]}
done