This repository was archived by the owner on Jul 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (36 loc) · 1.59 KB
/
Makefile
File metadata and controls
52 lines (36 loc) · 1.59 KB
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
51
52
#
# Makefile for Python WiFi
#
SHELL = /bin/sh
package = python-wifi
srcdir = .
VERSION = $(shell cat $(srcdir)/docs/VERSION)
BRANCH = "master"
TOPDIR := $(CURDIR)
.PHONY: all egg tarball changelog clean distclean
all:
egg:
python setup.py bdist_egg
tarball: $(TOPDIR)/tmp/${package}-$(VERSION).tar.bz2.sign $(TOPDIR)/tmp/${package}-$(VERSION).tar.bz2.sha256
$(TOPDIR)/tmp/${package}-$(VERSION).tar.bz2.sign: $(TOPDIR)/tmp/${package}-$(VERSION).tar.bz2
cd $(TOPDIR)/tmp && gpg --detach-sign -a --output ${package}-$(VERSION).tar.bz2.asc ${package}-$(VERSION).tar.bz2
cd $(TOPDIR)/tmp && chmod 644 ${package}-$(VERSION).tar.bz2.asc
cd $(TOPDIR)/tmp && gpg --verify ${package}-$(VERSION).tar.bz2.asc
$(TOPDIR)/tmp/${package}-$(VERSION).tar.bz2.sha256:
cd $(TOPDIR)/tmp && sha256sum ${package}-$(VERSION).tar.bz2 > ${package}-$(VERSION).tar.bz2.sha256
$(TOPDIR)/tmp/${package}-$(VERSION).tar.bz2:
rm -fr $(TOPDIR)/tmp
mkdir -p $(TOPDIR)/tmp/
git archive --format=tar --prefix=${package}-$(VERSION)/ $(BRANCH) | (cd $(TOPDIR)/tmp/ && tar xf -)
find $(TOPDIR)/tmp/${package}-$(VERSION) -type f -exec chmod ug+r {} \;
find $(TOPDIR)/tmp/${package}-$(VERSION) -type d -exec chmod ug+rx {} \;
chmod 755 $(TOPDIR)/tmp/${package}-$(VERSION)/examples/iw*.py
cd $(TOPDIR)/tmp && tar -ch ${package}-$(VERSION) | bzip2 > ${package}-$(VERSION).tar.bz2
cd $(TOPDIR)/tmp && chmod 644 ${package}-$(VERSION).tar.bz2
ls -l $(TOPDIR)/tmp/
changelog:
mkdir -p $(TOPDIR)/tmp/
git log | perl -pi -e 's/</</g; s/>/>/g; s/@/@<!-- com.com -->/g;' > $(TOPDIR)/tmp/CHANGELOG
clean:
rm -fr tmp/
distclean: clean