-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also update license and copyright years Signed-off-by: Christian Blichmann <mail@blichmann.eu>
- Loading branch information
1 parent
6ebf39e
commit b73b813
Showing
19 changed files
with
302 additions
and
11 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
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,84 @@ | ||
#!/usr/bin/env make | ||
# | ||
# headline.sh version 0.3 | ||
# Copyright (c)2015-2020 Christian Blichmann | ||
# | ||
# Makefile for POSIX compatible systems | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# * Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# * Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in the | ||
# documentation and/or other materials provided with the distribution. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
# Source Configuration | ||
version = 0.3 | ||
c_year ?= $(shell date +%Y) | ||
source_only_tgz = ../headline.sh_$(version).orig.tar.xz | ||
|
||
# Directories | ||
this_dir := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST))))) | ||
bin_dir := $(this_dir)/bin | ||
|
||
.PHONY: all | ||
all: | ||
@echo " [Nop] No need to build ./headline.sh" | ||
|
||
$(source_only_tgz): | ||
@echo " [Archive] $@" | ||
@tar -C "$(this_dir)" -caf "$@" \ | ||
--transform=s,^,headline-$(version)/, \ | ||
--exclude=.git/* --exclude=.git \ | ||
--exclude=debian/* --exclude=debian \ | ||
"--exclude=$@" \ | ||
--exclude-vcs-ignores \ | ||
.??* * | ||
|
||
.PHONY: updatesourcemeta | ||
updatesourcemeta: | ||
@echo " [Update] Version and copyright" | ||
@for i in \ | ||
$(this_dir)/debian/copyright \ | ||
$(this_dir)/debian/rules \ | ||
$(this_dir)/man/*.[1-9] \ | ||
$(this_dir)/*.sf \ | ||
$(this_dir)/headline.sh \ | ||
$(this_dir)/LICENSE \ | ||
$(this_dir)/Makefile \ | ||
$(this_dir)/README.md; \ | ||
do \ | ||
[ -f $$i ] && sed -i \ | ||
-e 's/\(headline.sh version\) [0-9]\+\.[0-9]\+/\1 $(version)/' \ | ||
-e 's/\(Copyright (c)[0-9]\+\)-[0-9]\+/\1-$(c_year)/' \ | ||
$$i; \ | ||
done | ||
|
||
# Create a source tarball without the debian/ subdirectory | ||
.PHONY: debsource | ||
debsource: $(source_only_tgz) | ||
|
||
# debuild signs the package iff DEBFULLNAME, DEBEMAIL and DEB_SIGN_KEYID are | ||
# set. Note that if the GPG key includes an alias, it must match the latest | ||
# entry in debian/changelog. | ||
deb: debsource $(binaries) | ||
@echo " [Debuild] Building package" | ||
@debuild | ||
|
||
.PHONY: debclean | ||
debclean: | ||
@echo " [Deb-Clean] Removing artifacts" | ||
@debuild -- clean |
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
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,7 @@ | ||
## Debian packaging | ||
|
||
This directory contains the Debian package source for headline.sh. To make | ||
this a regular, non-native package, this sub-directory should not be included | ||
in the original source. Use `make debsource` from the parent directory to | ||
build a source tarball compliant with Debian policy. The contents of this | ||
directory may then serve as a starting point for official packaging. |
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,12 @@ | ||
headline.sh (0.3-1) UNRELEASED; urgency=medium | ||
|
||
* Add Debian packaging | ||
* Update license information and readme | ||
|
||
-- Christian Blichmann <mail@blichmann.eu> Tue, 31 Dec 2019 15:21:36 +0100 | ||
|
||
headline.sh (0.2-1) UNRELEASED; urgency=medium | ||
|
||
* Initial release. Tested with Bash 4.4. | ||
|
||
-- Christian Blichmann <mail@blichmann.eu> Wed, 15 Feb 2017 12:01:00 +0100 |
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: headline.sh | ||
Maintainer: Christian Blichmann <headline-sh@blichmann.eu> | ||
Section: admin | ||
Priority: optional | ||
Build-Depends: cdbs, | ||
debhelper (>= 10) | ||
Standards-Version: 4.2.1 | ||
Homepage: https://github.com/cblichmann/headline.sh | ||
|
||
Package: headline.sh | ||
Architecture: any | ||
Built-Using: ${misc:Built-Using} | ||
Depends: ${misc:Depends} | ||
Description: ASCII-art font renderer for the command-line | ||
headline.sh is a small Bash shell script to print banner text to the | ||
terminal in different fonts. |
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,27 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
|
||
Files: * | ||
Copyright: 2015-2019 Christian Blichmann <mail@blichmann.eu> | ||
License: BSD-2-clause | ||
|
||
License: BSD-2-clause | ||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions | ||
are met: | ||
1. Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
2. Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
. | ||
THIS SOFTWARE IS PROVIDED BY AUTHORS AND CONTRIBUTORS ``AS IS'' AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
SUCH DAMAGE. |
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,6 @@ | ||
headline.sh /usr/share/headline.sh/ | ||
digital.sf /usr/share/headline.sh/ | ||
midnight.sf /usr/share/headline.sh/ | ||
null.sf /usr/share/headline.sh/ | ||
shell-sans.sf /usr/share/headline.sh/ | ||
README.md /usr/share/doc/headline.sh/ |
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 @@ | ||
/usr/share/headline.sh/headline.sh /usr/bin/headline.sh |
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,28 @@ | ||
#!/usr/bin/make -f | ||
# | ||
# headline.sh version 0.3 | ||
# Copyright (c)2015-2020 Christian Blichmann | ||
# | ||
# CDBS rules file for Debian packaging | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# * Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# * Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in the | ||
# documentation and/or other materials provided with the distribution. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
include /usr/share/cdbs/1/rules/debhelper.mk |
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 (quilt) |
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,2 @@ | ||
unapply-patches | ||
abort-on-upstream-changes |
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,4 @@ | ||
version=4 | ||
opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%headline.sh-$1.tar.gz%" \ | ||
https://github.com/cblichmann/headline.sh/tags \ | ||
(?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian update |
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
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
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
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
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