Subversion Repositories wimsdev

Rev

Rev 13024 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13024 Rev 13318
Line 39... Line 39...
39
echo $w_wims_class >class/serial
39
echo $w_wims_class >class/serial
40
 
40
 
41
if [ $w_format = zip ]; then
41
if [ $w_format = zip ]; then
42
  rm -f class.zip 2>/dev/null
42
  rm -f class.zip 2>/dev/null
43
  zip -r class.zip class >/dev/null
43
  zip -r class.zip class >/dev/null
-
 
44
  # when class.zip exceed filesystem limit, no zip is created
-
 
45
  # but it returns nothing on stderr
44
fi
46
fi
45
 
47
 
46
if [ $w_format = tgz ] || [ $w_format = tar.gz ]; then
48
if [ $w_format = tgz ] || [ $w_format = tar.gz ]; then
47
  tar -czf class.$w_format class >/dev/null
49
  tar -czf class.$w_format class >/dev/null
-
 
50
  # when class.tgz exceed filesystem limit, a truncated archive is created
-
 
51
  # and it returns "gzip: stdout: File too large" on stderr
48
fi
52
fi
49
 
53
 
50
ls -l class.$w_format | awk '{print $5}'
54
ls -l class.$w_format | awk '{print $5}'
51
mv class.$w_format $w_fname.$w_format
55
mv class.$w_format $w_fname.$w_format
52
rm -R class
56
rm -R class