source: trunk/linkchecker.sh @ 2

Last change on this file since 2 was 2, checked in by smasson, 17 years ago

initial import

File size: 1.6 KB
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#
14set -u
15set -o posix
16command=$(basename ${0})
17#
18# ++ simu paramètre
19DIRWWW=/usr/temp/${LOGNAME}/public_html/bibnemomaf/
20#
21linkcheckeropt="--anchors --recursion-level=-1"
22#
23# test if linkchecker is available
24type linkchecker 1> /dev/null 2>&1
25status=${?}
26if [ ${status} -ne 0 ]
27then
28 echo " eee : linkchecker not found"
29 exit 1
30fi
31#
32echo " "
33#++fverif=${DIRWWW}/en/one/bibnemomaf00.html
34fverif="file://"${DIRWWW}/en/one/bibnemomaf00.html
35nverif=wwwone00
36echo " Do you want to check ${fverif} (y|[n]) ?"
37anwser=" "
38read anwser
39case ${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 ;;
53esac
54#
55echo " "
56#++fverif=${DIRWWW}/en/one/bibnemomaf01.html
57fverif="file://"${DIRWWW}/en/one/bibnemomaf01.html
58nverif=wwwone00
59echo " Do you want to check ${fverif} (y|[n]) ?"
60anwser=" "
61read anwser
62case ${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 ;;
76esac
77#
78exit
Note: See TracBrowser for help on using the repository browser.