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