flokati/genbuilddate.sh

14 lines
353 B
Bash
Raw Normal View History

#!/bin/sh
2016-01-26 10:54:18 +00:00
BUILDDATEDIR="version"
BUILDDATEGO="version/builddate.go"
2016-01-26 10:54:18 +00:00
if [ ! -d "$BUILDDATEDIR" ]; then
mkdir $BUILDDATEDIR
fi
echo "package version" >$BUILDDATEGO
echo "" >>$BUILDDATEGO
echo "const (" >>$BUILDDATEGO
echo -n " FlokatiBuilddate = \"" >>$BUILDDATEGO
echo -n `date` >>$BUILDDATEGO
echo "\"" >>$BUILDDATEGO
echo ")" >>$BUILDDATEGO