aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-04 15:36:16 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-04 15:36:16 -0400
commit6ea52b1f911f85c5504f211c0b30ebdeef3e8669 (patch)
tree8f7eeede3ce26a9523b9df42d9e064c0fe835932
parent82e8f411962242cacce0a17ecaa97d6c64f4c201 (diff)
downloadsbo-maintainer-tools-6ea52b1f911f85c5504f211c0b30ebdeef3e8669.tar.gz
Fix multiple package args without absolute path
-rw-r--r--Makefile4
-rwxr-xr-xsbopkglint3
2 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 05b4e3c..1531447 100644
--- a/Makefile
+++ b/Makefile
@@ -39,3 +39,7 @@ sbolint.1: sbolint
sbopkglint.1: sbopkglint
./sbopkglint --man > sbopkglint.1
+
+# this requires VERSION in this Makefile to be set to the latest git tag.
+release: clean
+ git archive -o $(PROJ)-$(VERSION).tar.gz --prefix=$(PROJ)-$(VERSION)/ $(VERSION)
diff --git a/sbopkglint b/sbopkglint
index c7f88f7..9b3a95a 100755
--- a/sbopkglint
+++ b/sbopkglint
@@ -449,6 +449,7 @@ for package in $packages; do
echo "OK"
rm -f $PKG/.tmp.$$
+ olddir="$( pwd )"
cd "$PKG"
totalwarns=0
@@ -473,6 +474,8 @@ for package in $packages; do
rm -f .tmp.warncount
done
+ cd "$olddir"
+
[ "$KEEP" = "" ] && rm -rf "$PKG"
if [ "$foundtests" = "0" ]; then