Add sign script

Re-work into one big package, since a single package per script is kind
of silly
This commit is contained in:
Dylan Lom 2020-11-18 23:21:56 +11:00
parent b2b0129344
commit 1cac666ad8
5 changed files with 30 additions and 13 deletions

17
Makefile Normal file
View File

@ -0,0 +1,17 @@
all: djl-utils.deb
timestamp: src/timestamp
cp src/timestamp dist/usr/bin
sign: src/sign
cp src/sign dist/usr/bin
djl-utils.deb: timestamp sign
dpkg-deb -b dist
mv dist.deb dist/djl-utils.deb
install: djl-utils.deb
dpkg -i dist/djl-utils.deb
clean:
rm -f dist/usr/bin/* dist/djl-utils

View File

@ -1,5 +1,5 @@
Package: timestamp
Version: 1.0
Package: djl-utils
Version: 0.0
Section: custom
Priority: optional
Architecture: all
@ -7,5 +7,5 @@ Essential: no
Depends: tclsh
Installed-Size: 1024
Maintainer: Dylan Lom <djl@dylanlom.com>
Description: Output the current date/time stamp in various formats.
Description: Various scripts

10
src/sign Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env sh
#
# sign: generate a signature
# author: Dylan Lom <djl@dylanlom.com>
# licence: cc0
printf -- "--\n"
printf -- "$ %s@%s $ %s $\n" \
"$(whoami)" "$(hostname)" \
"$(date +"%Y-%m-%d %H:%M %Z")"

View File

@ -1,10 +0,0 @@
timestamp.deb: bin/timestamp
cp bin/timestamp dist/usr/bin/
dpkg-deb -b dist
mv dist.deb dist/timestamp.deb
install: timestamp.deb
dpkg -i dist/timestamp.deb
clean:
rm dist/timestamp.deb dist/usr/bin/timestamp