Skip to content

Commit

Permalink
add man page, packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
jaos committed Jan 18, 2023
1 parent d4ba114 commit 201e3bd
Show file tree
Hide file tree
Showing 12 changed files with 209 additions and 0 deletions.
46 changes: 46 additions & 0 deletions data/man/tater.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.TH tater 1 2023-01-16

.SH NAME
tater \- simple scripting language for tot lovers

.SH SYNOPSIS
.B tater
[\fIOPTION\fR]... [\fIFILE\fR]
.LP
.B options:
\fB-d\fR,
\fB-s\fR,
\fB-t\fR,
\fB-h\fR,
\fB-v\fR,
.LP

.SH DESCRIPTION
.B tater
is a simple scripting language based upon the excellent work of Robert Nystrom.

If a file is note passed on the command line the \fBREPL\fR will be started.

.SH OPTIONS
.TP
\fB\-d\fR
Enable debug mode
.TP
\fB\-s\fR
Garbage collection stress mode
.TP
\fB\-t\fR
Garbage collection tracing
.TP
\fB\-h\fR
Help
.TP
\fB\-v\fR
Version and license information

.SH NOTES
.PP
\fBtater\fR is \fBALPHA\fR quality.

.SH AUTHOR
Jason Woodward <[email protected]>
6 changes: 6 additions & 0 deletions debian/README.Debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tater for Debian
---------------

<Possible notes regarding this package - if none, delete this file.>

-- Jason Woodward <[email protected]> Mon, 16 Jan 2023 19:17:19 -0500
10 changes: 10 additions & 0 deletions debian/README.source
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
tater for Debian
---------------

<This file describes information about the source package, see Debian policy
manual section 4.14. You WILL either need to modify or delete this file.>



-- Jason Woodward <[email protected]> Mon, 16 Jan 2023 19:17:19 -0500

5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tater (0.1-1) UNRELEASED; urgency=medium

* Initial release.

-- Jason Woodward <[email protected]> Mon, 16 Jan 2023 19:17:19 -0500
19 changes: 19 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Source: tater
Section: interpreters
Priority: optional
Maintainer: Jason Woodward <[email protected]>
Rules-Requires-Root: no
Build-Depends:
debhelper-compat (= 13),
Standards-Version: 4.6.1
Homepage: https://software.jaos.org
Vcs-Browser: https://software.jaos.org/git/tater
Vcs-Git: https://software.jaos.org/git/tater

Package: tater
Architecture: any
Depends:
${shlibs:Depends},
${misc:Depends},
Description: Simple scripting language because everyone loves tots.
Simple scripting language because everyone loves tots.
33 changes: 33 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: https://software.jaos.org/git/tater
Upstream-Name: tater
Upstream-Contact: [email protected]

Files:
*
Copyright:
2022-2023 Jason Woodward <woodwardj at jaos dot org>
License: GPL-2.0+

Files:
debian/*
Copyright:
2023 Jason Woodward <[email protected]>
License: GPL-2.0+

License: GPL-2.0+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>
Comment:
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
26 changes: 26 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/make -f

# See debhelper(7) (uncomment to enable).
# Output every command that modifies files on the build system.
#export DH_VERBOSE = 1


# See FEATURE AREAS in dpkg-buildflags(1).
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# See ENVIRONMENT in dpkg-buildflags(1).
# Package maintainers to append CFLAGS.
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# Package maintainers to append LDFLAGS.
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed


%:
dh $@


# dh_make generated override targets.
# This is an example for Cmake (see <https://bugs.debian.org/641051>).
#override_dh_auto_configure:
# dh_auto_configure -- \
# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
2 changes: 2 additions & 0 deletions debian/tater-docs.docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
README.source
README.Debian
2 changes: 2 additions & 0 deletions debian/upstream/metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Repository-Browse: https://software.jaos.org/git/tater
Repository: https://software.jaos.org/git/tater
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,4 @@ datadocs = [
install_data_dir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name() + '-' + meson.project_version())
install_data(datadocs, install_dir: install_data_dir)
install_subdir('data/vim', install_dir: install_data_dir)
install_man(['data/man/tater.1'])
58 changes: 58 additions & 0 deletions tater.Slackbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#!/bin/sh
set -fexuo pipefail
# Slackware build script for tater
# Copyright (C) 2022-2023 Jason Woodward <woodwardj at jaos dot org>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

VERSION=${1:-$(grep '^\s*version:' meson.build | cut -f2 -d\')}
BUILD=${BUILD:-1}

if [ -z "${ARCH:=}" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
aarch64*) ARCH=aarch64 ;;
*) ARCH=$( uname -m ) ;;
esac
fi

TOP="${PWD}"
DESTDIR="${TOP}/pkg"
rm -rf "${DESTDIR}"

meson setup slackbuild --prefix=/usr --sysconfdir=/etc --mandir=/usr/man --buildtype=debugoptimized
meson compile -C slackbuild
meson install -C slackbuild --destdir="${DESTDIR}"
# meson >= 1.0 also has --strip build into install

find "${DESTDIR}" -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

find "${DESTDIR}/usr/man" -type f -exec gzip -9 {} \; || true

mkdir -p "${DESTDIR}/install"
cat <<EOF > "${DESTDIR}"/install/slack-desc
tater: tater (a simple scripting lanaguage for tot lovers)
tater:
tater: tater is a simple scripting language.
tater:
tater: https://software.jaos.org/git/tater
tater:
tater:
tater:
tater:
tater:
tater:
EOF
(cd "${DESTDIR}" && /sbin/makepkg -l y -c n "${TOP}/tater-${VERSION}-${ARCH}-${BUILD}.txz")

0 comments on commit 201e3bd

Please sign in to comment.