Wigwam Standard Programs

Wigwam comes with a large number of programs, mostly (or all) implemented as shell scripts. This section describes each of these programs, in rough groups by how they are used.

Publication Tools

Miscellaneous Utility Programs

wparallelizer

Table of Contents
wparallelizer -- run a number of commands in parallel

Programs Used Internally by pubtool

These are programs you will rarely need to run directly. Understanding their internals is marginally useful for obscure things, but mostly this section will be useful for those who have the misfortune of having to debug these tools.

Scripts to Load Certain Configurations into sh-variables

Programs Used Internally by the Packaging System

Though these are not generally needed, they are documented for those who have to maintain Wigwam, or debug a packaging problem.

ext/bin/build/check-installed PACKAGE VERSION

Test whether PACKAGE is installed at least version VERSION.

ext/bin/build/compare-version-number ver_number1 ver_number2

Exits if the first version number is equal or greater than the second version number.

ext/bin/build/build-package PACKAGE VERSION

Optionally downloads and builds the specified package.

ext/bin/build/build-{raw,make}-style

Builds a package of the stated type. This script should always be run by build-package which will figure the type by looking at the $PACKAGE-$VERSION.type file. The default type is configure for packages conforming to the GNU standard. Perl style packages are those that have a Makefile.PL. raw packages have their own custom build script.

ext/bin/build/expand-sources TARBALL "PATCHES" OUTPUT_DIR

Expands TARBALL so its base file is in OUTPUT_DIR, then apply the patches in left-to-right order. OUTPUT_DIR must not exist when this script is run. PATCHES may be an empty string, but must be present even if it is empty.

ext/bin/build/forcible-mv-recursive SOURCE_DIR DEST_DIR

Moves the contents of SOURCE_DIR over DEST_DIR.

ext/bin/build/get-installed-version PACKAGE

Returns the version of PACKAGE that will be/is installed (it will be installed if update-packages is run successfully.)

ext/bin/build/guess-package-defaults

Given downloaded package files, determine the basic package info: name of the tarball, list of patches, architecture to use.

ext/bin/build/mark-install PACKAGE VERSION

Indicate to the packaging system that PACKAGE has been successfully installed in this playpen, at version VERSION.

ext/bin/build/mark-uninstall PACKAGE

Indicate to the packaging system that PACKAGE has been uninstalled.

ext/bin/build/propeller PROMPT LOGFILE [COMMAND ..]

Prints a 'propeller' to stderr while copying to the logfile.

If a command is given, it is executed and its standard error and output are used as input to the propeller. In this case, propeller will exit with the status of its subprocess.

You may set WIGWAM_PROPELLER_MODE to one of the following values:

Mode: stderr

Description: Copy standard output and error to the propeller's stderr.

Mode: propeller

Description: Normal mode of operation.

Mode: quiet

Description: Output nothing.

Mode: terse

Description: Output the start and end messages on the same line.

Mode: linewise

Description: Output the start and end messages on separate lines, with nothing in between.

Programs Used Internally by the Services System

Though these are not generally needed, they are documented for those who have to maintain Wigwam, or debug a service problem.