Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66]) by www.NetBSD.org (Postfix) with ESMTP id 8830763B882 for ; Wed, 15 Aug 2012 21:18:18 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 4706214A22A; Wed, 15 Aug 2012 21:18:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 6CC2614A225 for ; Wed, 15 Aug 2012 21:18:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id KqShl1Rk8WTx for ; Wed, 15 Aug 2012 21:18:14 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 876A614A209 for ; Wed, 15 Aug 2012 21:18:14 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 1A9EC175DD; Wed, 15 Aug 2012 21:18:14 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Wed, 15 Aug 2012 21:18:14 +0000 From: "Julio Merino" Subject: CVS commit: pkgsrc/devel/shtk To: pkgsrc-changes@NetBSD.org Reply-To: jmmv@netbsd.org X-Mailer: log_accum Message-Id: <20120815211814.1A9EC175DD@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: jmmv Date: Wed Aug 15 21:18:14 UTC 2012 Added Files: pkgsrc/devel/shtk: DESCR Makefile PLIST buildlink3.mk pkgsrc/devel/shtk/files: Kyuafile base.subr base_test.sh bootstrap.subr cli.subr cli_test.sh config.subr config_test.sh cvs.subr cvs_test.sh list.subr list_test.sh process.subr process_test.sh shtk.1 shtk.sh shtk_test.sh Log Message: Initial addition of shtk 1.0. Despite its pretentious name, this package is just an attempt to generalize a bunch of code that I keep reusing every time I implement shell scripts. In particular, this is about to remove tons of duplicate stuff from both sysbuild and sysupgrade in subsequent commits and I'll probably use it again for some other stuff I have in mind. Description follows: The Shell Toolkit, or shtk for short, is a collection of modules written in sh(1) that provide common functionality to simplify the implementation of complex shell scripts. These modules provide things like utilities to manipulate data types, helpers to expose a common CLI, or higher-level abstractions such as the processing of configuration files. The included shtk(1) utility exposes convenience functionality to let the user "build" shell scripts that use shtk. Build, in this case, just means adding common boilerplate code to the initialization of the script to load the shtk common code. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/devel/shtk/DESCR pkgsrc/devel/shtk/Makefile \ pkgsrc/devel/shtk/PLIST pkgsrc/devel/shtk/buildlink3.mk cvs rdiff -u -r0 -r1.1 pkgsrc/devel/shtk/files/Kyuafile \ pkgsrc/devel/shtk/files/base.subr pkgsrc/devel/shtk/files/base_test.sh \ pkgsrc/devel/shtk/files/bootstrap.subr pkgsrc/devel/shtk/files/cli.subr \ pkgsrc/devel/shtk/files/cli_test.sh pkgsrc/devel/shtk/files/config.subr \ pkgsrc/devel/shtk/files/config_test.sh pkgsrc/devel/shtk/files/cvs.subr \ pkgsrc/devel/shtk/files/cvs_test.sh pkgsrc/devel/shtk/files/list.subr \ pkgsrc/devel/shtk/files/list_test.sh pkgsrc/devel/shtk/files/process.subr \ pkgsrc/devel/shtk/files/process_test.sh pkgsrc/devel/shtk/files/shtk.1 \ pkgsrc/devel/shtk/files/shtk.sh pkgsrc/devel/shtk/files/shtk_test.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.