From fda13845ebda20278338523e9344dabae0428ebe Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Tue, 26 Jan 2016 11:54:18 +0100 Subject: [PATCH] Create version dir in build. --- genbuilddate.sh | 4 ++++ genversion.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/genbuilddate.sh b/genbuilddate.sh index 0100a4e..0e90cff 100755 --- a/genbuilddate.sh +++ b/genbuilddate.sh @@ -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 diff --git a/genversion.sh b/genversion.sh index 3f24f88..c3c7c67 100755 --- a/genversion.sh +++ b/genversion.sh @@ -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