Subversion Repositories wimsdev

Rev

Rev 23 | Rev 3974 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
#! /bin/sh
2
 
3
cd $w_wims_home/$w_wims_sesdir
4
sdir=`pwd`
5
cldir=$w_wims_home/log/classes/$w_wims_class
6
 
7
rm -Rf getfile/class 2>/dev/null
8
mkdir -p getfile/class
9
cd $cldir
10
dirs=`ls -d version $w_dirs 2>/dev/null`
11
if [ ! -z "$dirs" ]; then
12
 cp -pRL $dirs $sdir/getfile/class
13
fi
14
 
15
cd $sdir/getfile
16
echo $w_wims_class >class/serial
17
 
18
if [ $w_format = zip ]; then
19
 rm -f class.zip 2>/dev/null
20
 zip -r class.zip class >/dev/null
21
fi
22
 
23
if [ $w_format = tgz ] || [ $w_format = tar.gz ]; then
24
 tar -czf class.$w_format class >/dev/null
25
fi
26
 
27
ls -l class.$w_format | awk '{print $5}'
28
mv class.$w_format $w_fname.$w_format
29
rm -R class
30