remaster/script/set_version.sh
2018-05-10 14:19:14 +02:00

13 lines
235 B
Bash
Executable File

#!/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
}