Create version dir in build.
This commit is contained in:
parent
562d03bb7c
commit
fda13845eb
|
@ -1,5 +1,9 @@
|
|||
#!/bin/sh
|
||||
BUILDDATEDIR="version"
|
||||
BUILDDATEGO="version/builddate.go"
|
||||
if [ ! -d "$BUILDDATEDIR" ]; then
|
||||
mkdir $BUILDDATEDIR
|
||||
fi
|
||||
echo "package version" >$BUILDDATEGO
|
||||
echo "" >>$BUILDDATEGO
|
||||
echo "const (" >>$BUILDDATEGO
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
#!/bin/sh
|
||||
VERSIONDIR="version"
|
||||
VERSIONGO="version/version.go"
|
||||
if [ ! -d "$VERSIONDIR" ]; then
|
||||
mkdir $VERSIONDIR
|
||||
fi
|
||||
echo "package version" >$VERSIONGO
|
||||
echo "" >>$VERSIONGO
|
||||
echo "const (" >>$VERSIONGO
|
||||
|
|
Loading…
Reference in New Issue