Subversion Repositories wimsdev

Rev

Rev 15453 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
15453 guerimand 1
#! /bin/sh
2
 
3
cd $w_wims_home/$w_wims_sesdir
4
cldir=$w_wims_home/log/classes/$w_wims_class
5
 
6
rm -Rf upload 2>/dev/null
7
mkdir -p upload
8
cd upload
9
mv ../user-deposit $w_wims_deposit
10
 
11
if [ $w_format = zip ]; then
12
 unzip $w_wims_deposit
13
fi
14
 
15
if [ $w_format = tgz ] || [ $w_format = tar.gz ]; then
16
 tar -xzf $w_wims_deposit
17
fi
18
 
19
rm -f $w_wims_deposit
20
find . ! \( -type f -o -type d \) -exec rm -f '{}' \;
21
find . -type f -exec chmod a-x,og-w '{}' \;
22