Rev 549 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7 | reyssat | 1 | #! /bin/sh |
2 | |||
3 | thisdir=`pwd | sed 's!/cpp$!!;s!/src$!!'` |
||
4 | cd $thisdir |
||
5 | typ=$1 |
||
6 | oeftest=`grep '^category=' INDEX 2>/dev/null` |
||
7 | if [ -z "$typ" ]; then echo "$oeftest" | grep oef >/dev/null && typ=oef; fi |
||
8 | if [ -z "$typ" ]; then echo "$oeftest" | grep deductio >/dev/null && typ=deduc; fi |
||
9 | if [ -z "$typ" ]; then echo "$oeftest" | grep document >/dev/null && typ=docu; fi |
||
10 | if [ -z "$typ" ]; then exit; fi |
||
11 | |||
12 | lastdir=$thisdir |
||
13 | wims_home=$w_wims_home |
||
14 | |||
15 | while [ -z "$wims_home" ] && [ "$lastdir" != "/" ] |
||
16 | do |
||
17 | wims_home=`cat $lastdir/.wimshome 2>/dev/null` |
||
18 | lastdir=`dirname $lastdir` |
||
19 | done |
||
20 | |||
21 | if [ -z "$wims_home" ]; then exit; fi |
||
22 | |||
23 | . $wims_home/public_html/scripts/$typ/mkindex |
||
24 |