remaster/script/set_version.sh

13 lines
235 B
Bash
Raw Normal View History

2018-05-10 12:19:14 +00:00
#!/bin/bash
[ -f "src/remaster.sh" ] && {
v=`echo $1 | sed 's/\./\\./g'`
#nummer
sed -i "s/@version\ .\..\../@version\ $v/g" src/remaster.sh
#datum
sed -i "s/@date\ ....-..-../@date\ `date +%Y-%m-%d`/g" src/remaster.sh
}