mirror of https://github.com/perkeep/perkeep.git
buildinfo: include dirty + flag in version
Change-Id: Idc4763de41fdfa055fed5c06a36db9e9539f60bc
This commit is contained in:
parent
9eed2f6082
commit
e398532b4a
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
|||
all:
|
||||
go install --ldflags="-X camlistore.org/pkg/buildinfo.GitInfo "`git log --pretty=format:'%ad-%h' --abbrev-commit --date=short -1` `pkg-config --libs sqlite3 1>/dev/null 2>/dev/null && echo "--tags=with_sqlite"` ./pkg/... ./server/... ./cmd/... ./third_party/...
|
||||
go install --ldflags="-X camlistore.org/pkg/buildinfo.GitInfo "`./misc/gitversion` `pkg-config --libs sqlite3 1>/dev/null 2>/dev/null && echo "--tags=with_sqlite"` ./pkg/... ./server/... ./cmd/... ./third_party/...
|
||||
|
||||
# Workaround Go bug where the $GOPATH/pkg cache doesn't know about tag changes.
|
||||
# Useful when you accidentally run "make" and then "make presubmit" doesn't work.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
all:
|
||||
GOROOT=$(HOME)/armgo GOOS=linux GOARCH=arm CGO_ENABLED=0 $(HOME)/armgo/bin/go build -o camput.arm camlistore.org/cmd/camput
|
||||
GOROOT=$(HOME)/armgo GOOS=linux GOARCH=arm CGO_ENABLED=0 $(HOME)/armgo/bin/go build -o camput.arm --ldflags="-X camlistore.org/pkg/buildinfo.GitInfo "`../../../misc/gitversion` camlistore.org/cmd/camput
|
||||
/bin/echo -n "package org.camlistore; public final class ChildProcessConfig { // " > ../gen/org/camlistore/ChildProcessConfig.java
|
||||
openssl sha1 camput.arm >> ../gen/org/camlistore/ChildProcessConfig.java
|
||||
/bin/echo "}" >> ../gen/org/camlistore/ChildProcessConfig.java
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
ver=$(git show --pretty=format:'%ad-%h' --abbrev-commit --date=short | head -1)
|
||||
git diff --exit-code >/dev/null || ver=$ver+
|
||||
echo $ver
|
||||
|
Loading…
Reference in New Issue