Files
Gokapi/build/setVersionTemplate.sh

6 lines
259 B
Bash
Executable File

#!/bin/sh
#Called by go generate
#Sets the version number in the template automatically
sed -i 's/{{define "version"}}.*{{end}}/{{define "version"}}'$1'{{end}}/g' ../../internal/webserver/web/templates/string_constants.tmpl
echo "Version in web template set"