diff options
author | Jesús <heckyel@hyperbola.info> | 2020-06-24 13:54:47 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-06-24 13:54:47 -0500 |
commit | c5cc3135088d314ecd69ab0f6c5b04d172c41c74 (patch) | |
tree | 04b6c642b5c8805efc2e09c7509d962fb8611bdf | |
parent | 5f677bf269634af885f1fb80f4a6aecab3cefe54 (diff) | |
download | fair-viewer-c5cc3135088d314ecd69ab0f6c5b04d172c41c74.tar.lz fair-viewer-c5cc3135088d314ecd69ab0f6c5b04d172c41c74.tar.xz fair-viewer-c5cc3135088d314ecd69ab0f6c5b04d172c41c74.zip |
Add Makefile to generator tarball
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 30 |
2 files changed, 30 insertions, 1 deletions
@@ -28,7 +28,6 @@ inc/ /blib/ /_eumm/ /*.gz -/Makefile /Makefile.old /MANIFEST.bak /pm_to_blib diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cbe727e --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +all: clean update generate + +O_VERSION=1.0.3 +C_VERSION=1.0.4 + +clean: + rm -rf _build/ Build fair-viewer-*.tar.gz MYMETA.{yml,json} + find . -name "*.bs" -delete + find . -name "*.o" -delete + find . -name "*.pm.tdy" -delete + +_ROOT_FILES = $(shell find . -type f \( -iname 'META.json' -o -iname 'META.yml' \)) +_BIN_FILES = $(shell find ./bin -type f \( -iname 'gtk-fair-viewer' -o -iname 'fair-viewer' \)) +_LIB_FILES = $(shell find ./lib/WWW -type f -iname 'FairViewer.pm') + +update: + @sed -i "s|v$(O_VERSION)|v$(C_VERSION)|g" $(_ROOT_FILES) $(_BIN_FILES) + @sed -i "s|$(O_VERSION)|$(C_VERSION)|g" $(_LIB_FILES) + +generate: + @tar -czf fair-viewer-$(C_VERSION).tar.gz --transform "s|^|fair-viewer-$(C_VERSION)/|" --owner 0 --group 0 \ + --exclude '*.bs' \ + --exclude '*.o' \ + --exclude '*.pm.tdy' \ + --exclude '.git' \ + -- \ + bin lib share t \ + Changes LICENSE README.md Artistic-2.0.txt \ + Build.PL Makefile.PL MANIFEST MANIFEST.SKIP \ + META.json META.yml |