Line | |
---|
1 | #! /bin/sh |
---|
2 | # |
---|
3 | # module : |
---|
4 | # check links of bibnemomaf before and after installation |
---|
5 | # cf. install.sh |
---|
6 | # |
---|
7 | # original location : |
---|
8 | # /usr/home/fplod/incas/bibnemo/src/bibnemomaf/linkchecker.sh sur aedon.locean-ipsl.upmc.fr |
---|
9 | # |
---|
10 | # update :: |
---|
11 | # fplod 2007-04-04T14:09:58Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
12 | # creation |
---|
13 | # |
---|
14 | set -u |
---|
15 | set -o posix |
---|
16 | command=$(basename ${0}) |
---|
17 | # |
---|
18 | # ++ simu paramètre |
---|
19 | DIRWWW=/usr/temp/${LOGNAME}/public_html/bibnemomaf/ |
---|
20 | # |
---|
21 | linkcheckeropt="--anchors --recursion-level=-1" |
---|
22 | # |
---|
23 | # test if linkchecker is available |
---|
24 | type linkchecker 1> /dev/null 2>&1 |
---|
25 | status=${?} |
---|
26 | if [ ${status} -ne 0 ] |
---|
27 | then |
---|
28 | echo " eee : linkchecker not found" |
---|
29 | exit 1 |
---|
30 | fi |
---|
31 | # |
---|
32 | echo " " |
---|
33 | #++fverif=${DIRWWW}/en/one/bibnemomaf00.html |
---|
34 | fverif="file://"${DIRWWW}/en/one/bibnemomaf00.html |
---|
35 | nverif=wwwone00 |
---|
36 | echo " Do you want to check ${fverif} (y|[n]) ?" |
---|
37 | anwser=" " |
---|
38 | read anwser |
---|
39 | case ${anwser} in |
---|
40 | y|Y) |
---|
41 | log=/tmp/linkchecker${nverif}.log |
---|
42 | err=/tmp/linkchecker${nverif}.err |
---|
43 | echo "iii : check of ${fverif}" |
---|
44 | linkchecker \ |
---|
45 | ${linkcheckeropt} \ |
---|
46 | ${fverif} \ |
---|
47 | 1> ${log} 2> ${err} |
---|
48 | echo "iii : log in ${log}" |
---|
49 | ;; |
---|
50 | *) |
---|
51 | echo "iii : no check of ${fverif}" |
---|
52 | ;; |
---|
53 | esac |
---|
54 | # |
---|
55 | echo " " |
---|
56 | #++fverif=${DIRWWW}/en/one/bibnemomaf01.html |
---|
57 | fverif="file://"${DIRWWW}/en/one/bibnemomaf01.html |
---|
58 | nverif=wwwone00 |
---|
59 | echo " Do you want to check ${fverif} (y|[n]) ?" |
---|
60 | anwser=" " |
---|
61 | read anwser |
---|
62 | case ${anwser} in |
---|
63 | y|Y) |
---|
64 | log=/tmp/linkchecker${nverif}.log |
---|
65 | err=/tmp/linkchecker${nverif}.err |
---|
66 | echo "iii : check of ${fverif}" |
---|
67 | linkchecker \ |
---|
68 | ${linkcheckeropt} \ |
---|
69 | ${fverif} \ |
---|
70 | 1> ${log} 2> ${err} |
---|
71 | echo "iii : log in ${log}" |
---|
72 | ;; |
---|
73 | *) |
---|
74 | echo "iii : no check of ${fverif}" |
---|
75 | ;; |
---|
76 | esac |
---|
77 | # |
---|
78 | exit |
---|
Note: See
TracBrowser
for help on using the repository browser.