fix(build): minor fix for build script to make latest copy for rpm when version is pre release version

This commit is contained in:
Torkel Ödegaard 2015-10-16 12:26:30 -04:00
parent dbc1a9cf82
commit b70b730cb9

View File

@ -73,7 +73,7 @@ func main() {
case "package":
//verifyGitRepoIsClean()
grunt("release")
// grunt("release")
createLinuxPackages()
case "latest":
@ -89,8 +89,13 @@ func main() {
}
func makeLatestDistCopies() {
rpmIteration := "-1"
if linuxPackageIteration != "" {
rpmIteration = "-" + linuxPackageIteration
}
runError("cp", "dist/grafana_"+version+"_amd64.deb", "dist/grafana_latest_amd64.deb")
runError("cp", "dist/grafana-"+strings.Replace(version, "-", "_", 5)+"-1.x86_64.rpm", "dist/grafana-latest-1.x86_64.rpm")
runError("cp", "dist/grafana-"+linuxPackageVersion+rpmIteration+".x86_64.rpm", "dist/grafana-latest-1.x86_64.rpm")
runError("cp", "dist/grafana-"+version+".linux-x64.tar.gz", "dist/grafana-latest.linux-x64.tar.gz")
}