2019-03-25 14:45:27 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# DL_PREFIX="https://slt.wolf-stuttgart.net/update/template"
|
|
|
|
|
|
|
|
cat res/prefix.template > slt-update.xml
|
|
|
|
|
2022-04-04 12:00:40 +00:00
|
|
|
find releases -name slt-\* | sort -V | while read f
|
2019-03-25 14:45:27 +00:00
|
|
|
do
|
|
|
|
|
|
|
|
VSTR=`echo "$f" | sed -E 's@releases/slt-@@; s@^([0-9]+\.[0-9]+\.[0-9]+).*$@\1@'`
|
|
|
|
|
|
|
|
FILE=`echo "$f" | sed 's@releases/@@'`
|
|
|
|
FORMAT=`echo "$f" | sed -E 's@^.*[0-9]+\.[0-9]+\.[0-9]+\.@@'`
|
|
|
|
|
|
|
|
sed '
|
|
|
|
s@__VERSION__@'"$VSTR"'@g;
|
|
|
|
s@__DOWNLOAD_URL__@'"$DL_PREFIX/files/$FILE"'@g;
|
|
|
|
s@__FORMAT__@'"$FORMAT"'@g
|
|
|
|
' res/update.template >> slt-update.xml
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
cat res/postfix.template >> slt-update.xml
|