Check-in [b2a6fd9de3]
Overview
| Comment: | Convert shell _pack script into sectioned Makefile. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
b2a6fd9de38e2b174af4defe229b0fb0 |
| User & Date: | mario on 2015-04-04 06:03:14 |
| Other Links: | manifest | tags |
Context
|
2015-04-04
| ||
| 06:06 | Compress gtkBuilder file with zlib for distribution. (gzip not usable without workarounds in Python2) check-in: 780f0ca590 user: mario tags: trunk | |
| 06:03 | Convert shell _pack script into sectioned Makefile. check-in: b2a6fd9de3 user: mario tags: trunk | |
| 01:50 | Document fossil repo specific URLs (changelog/, cat/, trunk, version, zip/, tar/). check-in: c39a33b3da user: mario tags: trunk | |
Changes
Modified Makefile from [967e318895] to [4a807d2d9d].
|
| < < | < | | < | < | | > | > > > > > > > > | > > | > | < > > > > > > > | | | | > > > > > | | | | | > > | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
SHELL := /bin/bash #(for brace expansion)
NAME := streamtuner2
VERSION := $(shell version get:plugin st2.py)
PACK := xpm
DEPS := -n $(NAME) -d python-pyquery -d python-gtk2 -d python-requests -d python-keybinder
OPTS := -s src -u man,fixperms -f --prefix=/usr/share/streamtuner2 --deb-compression xz --rpm-compression xz --exe-autoextract
all: gtk3 #(most used)
# Convert between internal GtkBuilder-zlib file and uncompressed xml
# (workaround because Python2 has no working gzip support)
gtk3:
zlib-flate -compress < gtk3.xml > gtk3.xml.zlib
glade:
zlib-flate -uncompress < gtk3.xml.zlib > gtk3.xml
glade gtk3.xml 2>/dev/null
zlib-flate -compress < gtk3.xml > gtk3.xml.zlib
# Package up using fpm/xpm
pack: gtk3, ver, docs, xpm, src
docs: # update static files
gzip -9c NEWS > NEWS.gz
ver: # copy `version:` info
version get:plugin st2.py write:control PKG-INFO
clean:
rm *.pyc */*.pyc
rm -r __pycache__ */__pycache__
#-- bundles
xpm: deb, pyz#, bin, rpm, exe
deb:
$(PACK) $(OPTS) $(DEPS) -t deb -p "$(NAME)-VERSION.deb" st2.py
rpm:
$(PACK) $(OPTS) $(DEPS) -t rpm -p "$(NAME)-VERSION.rpm" st2.py
bin:
$(PACK) $(OPTS) $(DEPS) -t tar -p "$(NAME)-VERSION.bin.txz" st2.py
zip:pyz
pyz:
$(PACK) -s src -t zip -p "$(NAME)-VERSION.pyz" --prefix=./ --verbose -f .zip.py st2.py
src:
cd .. && pax -wvJf streamtuner2/streamtuner2-$(VERSION).src.txz \
streamtuner2/*.{py,png,svg,desktop} streamtuner2/channels/*.{py,png} \
streamtuner2/{bundle/,help/,gtk,NEWS,READ,PACK,PKG,CRED,Make,bin,.zip}*
# test .deb contents
check:
dpkg-deb -c streamtuner2*deb
dpkg-deb -I streamtuner2*deb
rpm -qpil *rpm
|