Subversion Repositories wimsdev

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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