flokati/genbuilddate.sh

10 lines
265 B
Bash
Raw Normal View History

#!/bin/sh
BUILDDATEGO="version/builddate.go"
echo "package version" >$BUILDDATEGO
echo "" >>$BUILDDATEGO
echo "const (" >>$BUILDDATEGO
echo -n " FlokatiBuilddate = \"" >>$BUILDDATEGO
echo -n `date` >>$BUILDDATEGO
echo "\"" >>$BUILDDATEGO
echo ")" >>$BUILDDATEGO