blob: 172186dab51acf6b484e7f53c63a80fddfeb63d1 [file] [log] [blame]
BjornMagnussonXA56683ca2022-04-04 17:17:22 +02001#!/bin/bash
2
3#install envsubst
4apt-get update; apt-get install -y gettext-base
5
6idx=100
7while [ $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
24done