diff --git a/script/set_version.sh b/script/set_version.sh new file mode 100755 index 0000000..4492c07 --- /dev/null +++ b/script/set_version.sh @@ -0,0 +1,12 @@ +#!/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 +}