diff --git a/.gitignore b/.gitignore index 98eb6f9..5899ac6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ bake lex.yy.c +*.gz +*.deb diff --git a/README b/README index 2d7ea52..73fb7f1 100755 --- a/README +++ b/README @@ -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. ebuild: -debian: (perhaps forever) + +debian: provided in repo -- +./deb/package; dpkg -i deb/bake.deb # this installs only bake. diff --git a/deb/changelog b/deb/changelog new file mode 100644 index 0000000..7a8a241 --- /dev/null +++ b/deb/changelog @@ -0,0 +1,6 @@ +bake (20240101) stable; urgency=low + + [ Emil Williams ] + * Created Debian Package + + -- Emil Williams Sat, 04 Jan 2025 22:34:26 +0000 diff --git a/deb/control b/deb/control new file mode 100644 index 0000000..36cb0d7 --- /dev/null +++ b/deb/control @@ -0,0 +1,11 @@ +Source: bake +Version: 20250101 +Section: devel +Priority: optional +Maintainer: Emil Williams +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. diff --git a/deb/copyright b/deb/copyright new file mode 100644 index 0000000..21575df --- /dev/null +++ b/deb/copyright @@ -0,0 +1 @@ +All source code and documentation under Bake is released to the Public Domain. diff --git a/deb/package b/deb/package new file mode 100755 index 0000000..62d5ca1 --- /dev/null +++ b/deb/package @@ -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