Add sign script
Re-work into one big package, since a single package per script is kind of silly
This commit is contained in:
parent
b2b0129344
commit
1cac666ad8
|
@ -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
|
|
@ -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
|
||||
|
|
@ -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")"
|
|
@ -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
|
Loading…
Reference in New Issue