#!/bin/sh
# all files, w.o. listings and logs
# for lib4th/test4th, 6/2000 by h-peter recktenwald <phpr@snafu.de>

cd ..

d=$(pwd)
v=$(./relse.sh)

RM="/usr/local/bin/rm -f"
CP="/usr/local/bin/cp --backup=t"
MV="/usr/local/bin/mv --backup=t"
EN="./util/extname"

find . \( -name \*.lis -o -name \*dep -o -name \*log -o -name LOG\* -o -name \*gls -o -name \*~ \) -exec ${RM} \{\} \;&

#t=$(basename $(pwd) $(extname $(pwd)))
t=$(basename ${d%\.*})
cd ..
tar -cIpvf ${t}-${v}.tar.bz2 \
    $(find ${t} -depth ! -name l4\*html ! -name nasm\* ! -name au* ! -name CVS\* -print)
    ./lib4th.lsm 2>&1|tee -a LOG.p
#./${t}/ ./lib4th.lsm 2>&1|tee -a LOG.p
${CP} ./${t}-${v}.tar.bz2 ${t}-rel-${v}-$(date +%m%d%H).tar.bz2
${CP} ./${t}-${v}.tar.bz2 /usr/src/forth/cvs/${t}-${v}.tar.bz2

# ----------------------------------------------
# MK-pakr <eof>
