1
0
mirror of https://git.lain.church/bake/bake.git synced 2025-05-13 23:36:43 +00:00

.deb Packaging

This commit is contained in:
Emil Williams 2025-01-04 16:19:42 -07:00
parent f829ecdb77
commit 006285f60a
Signed by: Emil Williams
GPG Key ID: 9489B46C65132B52
6 changed files with 39 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
bake bake
lex.yy.c lex.yy.c
*.gz
*.deb

4
README
View File

@ -104,4 +104,6 @@ one day dare to package Bake as a deb. I would likely have to rename
bake to ebake, which is somehow worse than the original name of eMake. bake to ebake, which is somehow worse than the original name of eMake.
ebuild: <PENDING> ebuild: <PENDING>
debian: <PENDING> (perhaps forever)
debian: provided in repo --
./deb/package; dpkg -i deb/bake.deb # this installs only bake.

6
deb/changelog Normal file
View File

@ -0,0 +1,6 @@
bake (20240101) stable; urgency=low
[ Emil Williams ]
* Created Debian Package
-- Emil Williams <emilemilemil@cock.li> Sat, 04 Jan 2025 22:34:26 +0000

11
deb/control Normal file
View File

@ -0,0 +1,11 @@
Source: bake
Version: 20250101
Section: devel
Priority: optional
Maintainer: Emil Williams <emilemilemil@cock.li>
Package: bake
Architecture: amd64
Depends: libc-bin (>= 2)
Description: Run Embedded Shell Scripts
It executes with /bin/sh the command after a "@BAKE " to the end of
the line (a UNIX newline: '\n') or to the first instance of @STOP.

1
deb/copyright Normal file
View File

@ -0,0 +1 @@
All source code and documentation under Bake is released to the Public Domain.

16
deb/package Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
cd "$(dirname "$(readlink -f $0)")" || exit
mkdir -p bake/DEBIAN/ bake/usr/bin/ bake/usr/share/man/man1/ bake/usr/share/doc/
cp ../bake bake/usr/bin/
cp ../bake.1 bake/usr/share/man/man1/
cp copyright changelog bake/usr/share/doc/
cp control bake/DEBIAN/
gzip -n9 bake/usr/share/man/man1/bake.1
gzip -n9 bake/usr/share/doc/changelog
strip bake/usr/bin/bake
dpkg-deb --root-owner-group --build bake