./devel/shtk, Application toolkit for POSIX-compliant shell scripts

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 1.7, Package name: shtk-1.7, Maintainer: jmmv

The Shell Toolkit (shtk) is an application toolkit for programmers
writing POSIX-compliant shell scripts.

shtk provides a collection of reusable modules that work on a wide
variety of operating systems and shell interpreters. The included
modules aid developers in implementing usable and consistent CLI
interfaces, interacting with processes, parsing configuration files and
manipulating higher-level data types among other things.

shtk-based scripts are "built" by using the included shtk(1) utility,
which adds the necessary machinery to the scripts so that they can
trivially import and use the modular interfaces of shtk.

Required to build:

Master sites:

Filesize: 116.168 KB

Version history: (Expand)

CVS history: (Expand)

   2022-07-25 13:12:30 by Thomas Klausner | Files touched by this commit (102)
Log message:
*: remove pkg-config from tools where no buildlink3.mk file is included

Bulk build on NetBSD of these packages had the same result as before
(build succeeds, no PLIST change).
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:

The following distfiles were unfetchable (note: some may be only fetched

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles
   2017-02-17 22:20:07 by Julio Merino | Files touched by this commit (3)
Log message:
Update shtk to 1.7:

**Released on 2017-02-17.**

* This is the first release with fixes for and confirmed to work with all
  of bash, dash, pdksh, and zsh.  We now have continuous integration runs
  for all these interpreters to ensure that this holds true in future

* Added the `shtk_abort` function to terminate a script on fatal internal

* Added the `shtk_cli_debug` function to log debug-level messages.

* Added the `shtk_cli_log_level` and `shtk_cli_set_log_level` functions to
  query and set the maximum log level.

* Added the `shtk_fs` module with the `shtk_fs_join_paths` and
  `shtk_fs_normalize_path` functions.

* Added the `shtk_hw` module with the `shtk_hw_ncpus` function.

* Fixed option parsing to detect missing arguments to options.

* Fixed pattern matching in `shtk_list_filter` so that it supports
  alternative branches.
   2015-11-03 04:29:40 by Alistair G. Crooks | Files touched by this commit (1995)
Log message:
Add SHA512 digests for distfiles for devel category

Issues found with existing distfiles:
No changes made to these distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2015-03-11 20:39:57 by Tobias Nygren | Files touched by this commit (1) | Package updated
Log message:
update to my previous commit which was still sitting in my tree
   2015-03-07 15:31:03 by Tobias Nygren | Files touched by this commit (1)
Log message:
convert to USE_GITHUB
   2014-11-17 20:55:54 by Julio Merino | Files touched by this commit (3)
Log message:
Update shtk to 1.6:

Released on 2014-11-17.

* Added the unittest module, a framework with which to implement
  robust test programs purely in shell.  This new module supports
  defining test programs as a collection of standalone test cases or
  test fixtures; supports assert-syle vs. expect-style checks; and
  provides advanced checks to simplify the implementation of tests
  cases for command-line utilities.  unittest-based test programs
  can be trivially plugged into the Kyua testing framework.

* Added manual pages for all public API functions.  See shtk(3) for
  an introduction and follow all linked pages for details.  All
  docstrings have been removed from the code in favor of the manual

* Added the shtk_config_include function so that configuration files
  can source other files using relative (or absolute) paths.

* Removed 'set -e' calls from shtk and from any generated scripts.
  It is the user who should be enabling this feature if he chooses to
  because 'set -e' may have suprising and inconsistent behavior in
  large scripts (and shtk can be defined as large).