Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:javascript
espruino
fix-no-git.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-no-git.patch of Package espruino
diff --git a/Makefile.orig b/Makefile index 2cf73f4..de6e080 100644 --- a/Makefile.orig +++ b/Makefile @@ -78,7 +78,7 @@ CCFLAGS?= # specific flags when compiling cc files LDFLAGS?=-Winline -g OPTIMIZEFLAGS?= #-fdiagnostics-show-option - shows which flags can be used with -Werror -DEFINES+=-DGIT_COMMIT=$(shell git log -1 --format="%h") +DEFINES+=-DGIT_COMMIT=DEADBEEF ifeq ($(shell uname),Darwin) MACOSX=1 @@ -100,9 +100,9 @@ endif ifndef ALT_RELEASE # Default release labeling. (This may fail and give inconsistent results due to the fact that # travis does a shallow clone.) -LATEST_RELEASE=$(shell git tag | grep RELEASE_ | sort | tail -1) +LATEST_RELEASE=2.08 # use egrep to count lines instead of wc to avoid whitespace error on Mac -COMMITS_SINCE_RELEASE=$(shell git log --oneline $(LATEST_RELEASE)..HEAD | egrep -c .) +COMMITS_SINCE_RELEASE=0 ifneq ($(COMMITS_SINCE_RELEASE),0) DEFINES += -DBUILDNUMBER=\"$(COMMITS_SINCE_RELEASE)\" endif @@ -116,7 +116,7 @@ else # v1.81.peter_experiment_83bd432, where the last letters are the short of the current commit SHA. # Warning: this same release label derivation is also in scripts/common.py in get_version() LATEST_RELEASE=$(shell egrep "define JS_VERSION .*\"$$" src/jsutils.h | egrep -o '[0-9]v[0-9]+') -COMMITS_SINCE_RELEASE=$(ALT_RELEASE)_$(subst -,_,$(shell git name-rev --name-only HEAD))_$(shell git rev-parse --short HEAD) +COMMITS_SINCE_RELEASE=$(ALT_RELEASE)_$(subst -,_,main)_src # Figure out whether we're building a tagged commit (true release) or not TAGGED:=$(shell if git describe --tags --exact-match >/dev/null 2>&1; then echo yes; fi) ifeq ($(TAGGED),yes)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor