Create version dir in build.

This commit is contained in:
Andreas Neue 2016-01-26 11:54:18 +01:00
parent 562d03bb7c
commit fda13845eb
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,9 @@
#!/bin/sh #!/bin/sh
BUILDDATEDIR="version"
BUILDDATEGO="version/builddate.go" BUILDDATEGO="version/builddate.go"
if [ ! -d "$BUILDDATEDIR" ]; then
mkdir $BUILDDATEDIR
fi
echo "package version" >$BUILDDATEGO echo "package version" >$BUILDDATEGO
echo "" >>$BUILDDATEGO echo "" >>$BUILDDATEGO
echo "const (" >>$BUILDDATEGO echo "const (" >>$BUILDDATEGO

View File

@ -1,5 +1,9 @@
#!/bin/sh #!/bin/sh
VERSIONDIR="version"
VERSIONGO="version/version.go" VERSIONGO="version/version.go"
if [ ! -d "$VERSIONDIR" ]; then
mkdir $VERSIONDIR
fi
echo "package version" >$VERSIONGO echo "package version" >$VERSIONGO
echo "" >>$VERSIONGO echo "" >>$VERSIONGO
echo "const (" >>$VERSIONGO echo "const (" >>$VERSIONGO