A portable shell tool
GNU shtool is a compilation of small but very stable and portable
shell scripts into a single shell tool. All ingredients were in
successful use over many years in various free software projects.
The compiled shtool program is intended to be used inside the source
tree of other free software packages. There it can overtake various
(usually non-portable) tasks related to the building and installation
of such a package. It especially can replace the old mkdir.sh,
install.sh and related scripts.
shtool GNU shtool is a compilation of small but very stable and portable shell scripts into a single shell tool. All ingredients were in successful use over many years... shtool-arx shtool arx is a wrapper around the archiving tool ar(1). It provides the ability to create archives out of existing archives, i.e., if one of file matches... shtool-echo shtool echo is an echo(1) style command which prints string to stdout and optionally provides special expansion constructs (terminal bold mode, environment... shtool-fixperm shtool fixperm fixes file permissions inside a source tree under path by cleaning up the permission bits. It determines the cleaned up permission from the... shtool-install This command installs a one or more files to a given target path providing all important options of the BSD install(1) command. The trick is that the... shtoolize The shtoolize program builds individual GNU shtool scripts (written to the default output file "shtool" or to the specified script) out of one or more shtool... shtool-mdate This command pretty-prints the last modification time of a given file or directory path, while still allowing one to specify the format of the date to display. shtool-mkdir This is a mkdir(1) style command with additional options and the ability to be smart if the directory already exists which is important for installation... shtool-mkln This is a ln(1) style command. It is enhanced to provide automatic calculation and usage of relative links with the shortest possible path, if possible. Usually... shtool-mkshadow This command creates a shadow tree of src-dir under dst-dir by recreating the directory hierarchy of src-dir under dst-dir and by creating the files of src-dir... shtool-move This is a mv(1) style command enhanced with the ability to rename multiple files in a single operation and the ability to detect and not touch existing equal... shtool-path This command deals with shell $PATH variables. It can find a program through one or more filenames given by one or more str arguments. It prints the absolute... shtool-platform shtool platform is a flexible Unix platform identification program. It distinguishes a platform according to its hardware architecture and operating system. For... shtool-prop This command displays a processing indication though a running propeller. It is intended to be run at the end of a pipe (""|"") sequence where on "stdin"... shtool-rotate This command rotates a logfile file by subsequently creating up to count (optionally compressed) archive files of it. Archive files are named... shtool-scpp This command is an additional ANSI C source file pre-processor for sharing cpp(1) code segments, internal variables and internal functions. The intention for... shtool-slo This command separates the linker options “-L” and “-l” by library class. It's argument line can actually be an arbitrary command line where those options are... shtool-subst This command applies one or more sed(1) substitution operations to stdin or any number of files. shtool-table This pretty-prints a list of strings as a table. shtool-tarball This command is for rolling input files under path into a distribution tarballs which can be extracted by tar(1). The four important aspects of good open source... shtool-version This command displays and maintains version information in file. The version is always described with a triple <version,revision,level> and is represented by a...