]> pd.if.org Git - zpackage/blobdiff - Makefile
add zpm-contents script
[zpackage] / Makefile
index b41942843989a75ec2ff0cadd9692979ddd8d890..96aca9d1674e12e4d4857d5d9d3a906e577e6b87 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ CFLAGS=-Wall -W -Wextra -Werror -Wno-implicit-fallthrough -std=c99 -Ilib -Isqlit
 
 ZPMVER:=$(shell git tag --list 'v[0-9]*' | sed -e 's/^v//' | sort -nr | head -1)
 ifeq ($(strip $(ZPMVER)),)
-       ZPMVER:=0.1.1
+       ZPMVER:=0.1.2
 endif
 
 LZMAFLAGS=-Ilzma/api -Ilzma/tuklib -Ilzma/lzma -Ilzma/common -Ilzma/check -Ilzma/lz -Ilzma/rangecoder -Ilzma/simple -Ilzma/delta -DHAVE_CHECK_CRC64 -DHAVE_CHECK_CRC32 -DHAVE_ENCODER_LZMA2 -DHAVE_DECODER_LZMA2 -DHAVE_MF_BT4
@@ -18,7 +18,8 @@ curdir=$(shell pwd)
 ZPKGBIN=zpm-addfile zpm-extract zpm-init zpm-vercmp zpm-stat zpm-hash \
        zpm-findpkg zpm-shell zpm-soneed
 
-SCRIPTS=zpm zpm-install zpm-merge zpm-list zpm-preserve zpm-test zpm-log
+SCRIPTS=zpm zpm-install zpm-merge zpm-list zpm-preserve zpm-test zpm-log \
+       zpm-contents
 COMPILED=$(ZPKGBIN)
 PROGRAMS=$(SCRIPTS) $(COMPILED)
 
@@ -130,7 +131,10 @@ clean:
                *.xz *.zpm \
                local.db t/ctap/prove.o
 
-tmpinstall: package
+tmpinstall:
        rm -rf tmp
        mkdir tmp
+       ZPMDB=tmp/db.zpm ./zpm -P. install -R tmp -f zpm-0.1.1-1.zpm -u nw -g nw
+
+tmpupgrade:
        ZPMDB=tmp/db.zpm ./zpm -P. install -R tmp -f zpm-$(ZPMVER)-1.zpm -u nw -g nw