forked from an/flokati
Create version dir in build.
This commit is contained in:
parent
562d03bb7c
commit
fda13845eb
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue