#!/bin/sh # Set initial variables: CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi PKG=$TMP/package-etc SRC=/devel/manpagesrc INFO=/devel/info-pages/usr/info TEX=/devel/texinfo-docs if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi if [ ! -d $PKG ]; then mkdir -p $PKG # place for the package to be built fi # Explode the package framework: cd $PKG explodepkg $CWD/_etc.tar.gz cd $TMP # Build the package: cd $PKG tar czvf $TMP/etc.tgz . # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then rm -rf $PKG fi