blob: 172186dab51acf6b484e7f53c63a80fddfeb63d1 [file] [log] [blame]
#!/bin/bash
#install envsubst
apt-get update; apt-get install -y gettext-base
idx=100
while [ $idx -lt 1000 ]; do
VALUE1=$idx
VALUE2=$idx
VALUE3=$idx
VALUE4=$idx
let VALUE2=VALUE2+100
let VALUE3=VALUE3+200
let VALUE4=VALUE4+300
export VALUE1
export VALUE2
export VALUE3
export VALUE4
targetfile="A${idx}.xml"
envsubst < pm.xml > $targetfile
#cp pm.xml $targetfile
gzip -f $targetfile
let idx=idx+1
done