#!/bin/sh
# mk_test

# A simple test utility for install-log.

# $Id: mk_test,v 1.3 2002/10/21 19:44:22 andy Exp $

# Copyright (C) 2002 Andy Goth <unununium@openverse.com>
# For more information visit http://ioioio.net/devel/install-log/
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place - Suite 330, Boston, MA  02111-1307, USA.

die () { [ ${#} -gt 0 ] && echo ${@} || cat; exit 1; }

DIR=${1:-"test"}
[ -e ${DIR} ] && die "${DIR} already exists"

mkdir ${DIR} ${DIR}/etc ${DIR}/usr ${DIR}/var
touch -d"Jan 1, 1970" ${DIR}/var/.timestamp
touch ${DIR}/usr/{01,02,03,04,05,06,07,08,09,10}
cat > ${DIR}/etc/install-log.rc << EOF
INCLUDE=/usr
LOGDIR=/var
EOF

# EOF
