mmflokati/genbuilddate.sh

10 lines
254 B
Bash
Executable File

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