#!/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" -exec ${RM} \{\} \;&
find . -name "LOG.*" -exec ${RM} \{\} \;&
find . -name "*~" -exec ${RM} \{\} \;

t=$(basename $(pwd) $(${EN} $(pwd)))
cd ..
tar -cIpvf ${t}-rsv-${v}.tar.bz2 ./${t}/ ./lib4th.lsm 2>&1|tee -a LOG.p
${MV} ./${t}-rsv-${v}.tar.bz2 ${t}-rsv-${v}-$(date +%m%d%H).tar.bz2

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