BjornMagnussonXA | 56683ca | 2022-04-04 17:17:22 +0200 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | #install envsubst | ||||
4 | apt-get update; apt-get install -y gettext-base | ||||
5 | |||||
6 | idx=100 | ||||
7 | while [ $idx -lt 1000 ]; do | ||||
8 | VALUE1=$idx | ||||
9 | VALUE2=$idx | ||||
10 | VALUE3=$idx | ||||
11 | VALUE4=$idx | ||||
12 | let VALUE2=VALUE2+100 | ||||
13 | let VALUE3=VALUE3+200 | ||||
14 | let VALUE4=VALUE4+300 | ||||
15 | export VALUE1 | ||||
16 | export VALUE2 | ||||
17 | export VALUE3 | ||||
18 | export VALUE4 | ||||
19 | targetfile="A${idx}.xml" | ||||
20 | envsubst < pm.xml > $targetfile | ||||
21 | #cp pm.xml $targetfile | ||||
22 | gzip -f $targetfile | ||||
23 | let idx=idx+1 | ||||
24 | done |