Corrected the sky130 Makefile so that if the repository is checked out or built from a zip file or tarball, and is not itself a git repo, then the revision number will get set from the VERSION file (like it used to be) instead of relying on "git describe" which won't return anything.
diff --git a/VERSION b/VERSION index 9632c46..4a063f1 100644 --- a/VERSION +++ b/VERSION
@@ -1 +1 @@ -1.0.140 +1.0.141
diff --git a/sky130/Makefile.in b/sky130/Makefile.in index 2557f6b..8423fb7 100644 --- a/sky130/Makefile.in +++ b/sky130/Makefile.in
@@ -128,8 +128,15 @@ SHELL = bash MV = mv -REVISION = `git describe --long` -TECH = sky130 +# Use git revision if this is a cloned repo; otherwise get the revision +# from the VERSION file in the directory above. +GITREV = $(shell git describe --long) +ifeq (${GITREV},) + REVISION = $(shell cat ../VERSION) +else + REVISION = ${GITREV} +endif +TECH = sky130 # If EF_STYLE is set to 1, then efabless naming conventions are # used, otherwise the generic naming conventions are used. @@ -143,7 +150,7 @@ # although /tmp or a dedicated staging area are also fine, as long # as the install process can write to the path. -STAGING_PATH = `pwd` +STAGING_PATH = $(shell pwd) # If LINK_TARGETS is set to "none", then files are copied # from the SkyWater sources to the target. If set to "source",