mirror of
https://github.com/muccc/WomoLIN.git
synced 2026-03-14 13:06:48 +01:00
19 lines
454 B
Bash
Executable File
19 lines
454 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
cp $1/womolin/$3 $2/$3
|
|
|
|
if [[ `git status --short` || `git diff origin/master` ]]; then
|
|
GIT_HASH="NO_HASH"
|
|
RELEASE="LOCAL"
|
|
#DATE=`TZ="Europe/Berlin" && date +%d-%m-%Y %H:%M:%S`
|
|
DATE=`date`
|
|
else
|
|
GIT_HASH=`git rev-parse --short HEAD`
|
|
RELEASE="RELEASE"
|
|
DATE=`git log -1 --pretty=%ad ${GIT_HASH}`
|
|
fi
|
|
|
|
sed -i "s/@GIT_HASH@/${GIT_HASH}/g" $2/$3
|
|
sed -i "s/@RELEASE@/${RELEASE}/g" $2/$3
|
|
sed -i "s/@DATE@/${DATE}/g" $2/$3
|