#!/bin/sh if [ -z "$1" ]; then BUILD_HOME=/var/lib/builder else BUILD_HOME=$1 fi set -e makeit() { echo "Create $1" install -d -m 0755 $BUILD_HOME/$1 } makeit source-root makeit install-root makeit build-archive makeit log-root makeit public_html makeit public_ftp makeit package-root makeit package-root/rpm makeit package-root/rpm/BUILD makeit package-root/rpm/RPMS makeit package-root/rpm/RPMS/noarch makeit package-root/rpm/RPMS/i386 makeit package-root/rpm/RPMS/i486 makeit package-root/rpm/RPMS/i586 makeit package-root/rpm/RPMS/i686 makeit package-root/rpm/RPMS/x86_64 makeit package-root/rpm/RPMS/ia32e makeit package-root/rpm/RPMS/ia64 makeit package-root/rpm/RPMS/sparc makeit package-root/rpm/SPECS makeit package-root/rpm/SOURCES makeit package-root/rpm/SRPMS makeit package-root/zips makeit package-root/tars makeit package-root/debian exit 0; POD=< script provides a convenience for populating all pre-requisite directories. =head1 STRUCTURE The following directories are created by the script: =over 4 =item source-root The directory into which the modules' source code will be checked out of version control. =item install-root The virtual root directory in which modules will install files during the "make install" part of their build process. =item log-root The directory into which build and test log files will be spooled during execution of modules' control files. =item package-root The directory into which packages (RPMs, Debian packages, ZIPs, etc) will be saved by the module's control file. There are subdirectories below this for all the various different types of packages. =item build-archive The directory used for caching the results of module builds across build cycles. =item public_html The directory in which the HTML status pages will be generated, and build artifacts, packages, and log files published. This directory should be exported by an HTTP server =item public_ftp The directory in which packages will be published. This directory should be exported by an FTP server. =back =head1 SEE ALSO L, L =cut EOF