-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
758 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/fritzbox-print-internet-ticket.py | ||
/fritzbox-print-internet-ticket.py | ||
/out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.PHONY: all build install clean commit-release release deb repo | ||
PACKAGE=fritzbox-internet-ticket | ||
SHELL=bash | ||
VERSION := $(shell git rev-list HEAD --count --no-merges) | ||
GIT_STATUS := $(shell git status --porcelain) | ||
|
||
|
||
all: build | ||
|
||
build: | ||
@echo No build required | ||
|
||
commit-release: | ||
ifneq ($(GIT_STATUS),) | ||
$(error Please commit all changes before releasing. $(shell git status 1>&2)) | ||
endif | ||
gbp dch --full --release --new-version=$(VERSION) --distribution stable --auto --git-author --commit | ||
git push | ||
|
||
release: commit-release deb | ||
@latest_tag=$$(git describe --tags `git rev-list --tags --max-count=1`); \ | ||
comparison="$$latest_tag..HEAD"; \ | ||
if [ -z "$$latest_tag" ]; then comparison=""; fi; \ | ||
changelog=$$(git log $$comparison --oneline --no-merges --reverse); \ | ||
github-release schlomo/$(PACKAGE) v$(VERSION) "$$(git rev-parse --abbrev-ref HEAD)" "**Changelog**<br/>$$changelog" 'out/*.deb'; \ | ||
git pull | ||
dput ppa:sschapiro/ubuntu/ppa/xenial out/$(PACKAGE)_*_source.changes | ||
|
||
install: | ||
install -m 0755 -D -t $(DESTDIR)/usr/bin fritzbox-internet-ticket | ||
install -m 0755 -D -t $(DESTDIR)/usr/bin fritzbox-get-internet-tickets.py | ||
install -m 0644 -D -t $(DESTDIR)/usr/share/applications fritzbox-internet-ticket*.desktop | ||
install -m 0644 -D -t $(DESTDIR)/usr/share/icons/hicolor/scalable/apps fritzbox-internet-ticket*.svg | ||
|
||
clean: | ||
rm -Rf debian/$(PACKAGE)* debian/files out/* | ||
|
||
deb: clean | ||
ifneq ($(MAKECMDGOALS), release) | ||
$(eval DEBUILD_ARGS := -us -uc) | ||
endif | ||
debuild $(DEBUILD_ARGS) -i -b --lintian-opts --profile debian | ||
debuild $(DEBUILD_ARGS) -i -S --lintian-opts --profile debian | ||
mkdir -p out | ||
mv ../$(PACKAGE)*.{xz,dsc,deb,build,changes} out/ | ||
dpkg -I out/*.deb | ||
dpkg -c out/*.deb | ||
|
||
repo: | ||
../putinrepo.sh out/*.deb | ||
|
||
# vim: set ts=4 sw=4 tw=0 noet : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fritzbox-internet-ticket (1) stable; urgency=medium | ||
|
||
* Initial Release | ||
|
||
-- Schlomo Schapiro <[email protected]> Sun, 07 Oct 2018 18:18:18 +0200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Source: fritzbox-internet-ticket | ||
Maintainer: Schlomo Schapiro <[email protected]> | ||
Section: misc | ||
Priority: optional | ||
Standards-Version: 3.9.7 | ||
Homepage: https://github.com/schlomo/fritzbox-internet-ticket | ||
Build-Depends: debhelper (>= 9), git-buildpackage | ||
|
||
Package: fritzbox-internet-ticket | ||
Architecture: all | ||
Depends: ${misc:Depends}, python3, curl | ||
Description: Retrieve internet tickets from Fritzbox and print on a Zebra printer | ||
What it does: | ||
* Retrieve 10 internet tickets from a Fritzbox | ||
* Print the first ticket | ||
* Upload the remaining 9 tickets to a Google Drive Form |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Files: * | ||
Copyright: 2018 Schlomo Schapiro | ||
License: GPL-3, see /usr/share/common-licenses/GPL-3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/make -f | ||
%: | ||
dh $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (native) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters