From 49901e1f325421a3c7872487730c07629db3d9d3 Mon Sep 17 00:00:00 2001 From: 6543 Date: Thu, 10 May 2018 14:19:14 +0200 Subject: [PATCH] scripts --- script/set_version.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 script/set_version.sh 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 +}