forked from FreeFem/FreeFem-sources
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-www
executable file
·56 lines (49 loc) · 1.77 KB
/
install-www
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
if [ "$1" != "www" -a "$1" != "doc" ]; then
echo "usage : $0 www or $0 doc "
exit
fi
if [ -n "$2" ] ; then
VERSION="$2"
else
VERSION=`awk '/#define VersionFreeFempp/ {print $3}' config-version.h`
fi
listf=(freefem++-${VERSION}.tar.gz FreeFem++v${VERSION}_MacOsX.tgz FreeFem++v${VERSION}_Win.zip FreeFem++v${VERSION}_MacOS.sit)
listcd=(freefem++.tar.gz "freefem++_macosx.tgz" freefem++.zip freefem++.sit)
dwww="www_gamma/Gamma/cdrom/ftp/freefem/"
[email protected]:"$dwww"
[email protected]:/ftp_gamma/freefem/
[email protected]:public_html/ftp/freefem/
if [ -f Output/FreeFem++-$VERSION.exe ]; then
scp Output/FreeFem++-${VERSION}.exe $ftpk
# scp Output/FreeFem++-${VERSION}.exe $ftp
scp Output/FreeFem++-${VERSION}.exe $www/freefem++.exe
else
list1="HISTORY HISTORY_BEFORE_2005 DOC/manual-full.pdf DOC/manual-full.ps.gz "
if [ "$1" = "doc" ]; then
set -x
rsync -vzupogt --rsh="ssh -l hecht" $list1 $ftpk
rsync -vzupogt --rsh="ssh -l hecht" HISTORY HISTORY_BEFORE_2005 baobab.ann.jussieu.fr:www/.
# scp HISTORY [email protected]:www_gamma/Gamma/cdrom/www/freefem/
scp $list1 $www
fi
if [ "$1" = "www" ]; then
for ((i=0;${#listf[$i]};i++)); do
f=${listf[$i]}
lcd=${listcd[$i]}
echo file : $f
if [ -f $f ]; then
rsync -vzupogt --rsh="ssh -l hecht" $f $ftpk
# scp $f $ftp
if [ -n "$lcd" ] ; then
scp $f $www$lcd
fi
fi
done;
fi
# update the 2 web page
#scp update_www ff++.htmx [email protected]:/tmp
#scp update_www ff++.htmx [email protected]:/tmp
#ssh [email protected] "cd www/.; /tmp/update_www ${VERSION} >freefem++.htm </tmp/ff++.htmx"
#ssh tazard.inria.fr "cd $dwww; /tmp/update_www ${VERSION} cdrom >index.html </tmp/ff++.htmx"
fi