Subversion Repositories wimsdev

Compare Revisions

No changes between revisions

Ignore whitespace Rev 6 → Rev 7

/trunk/wims/other/bin/imgindex
0,0 → 1,16
#! /bin/sh
 
thisdir=`pwd`
lastdir=$thisdir
wims_home=$w_wims_home
 
while [ -z "$wims_home" ] && [ "$lastdir" != "/" ]
do
wims_home=`cat $lastdir/.wimshome 2>/dev/null`
lastdir=`dirname $lastdir`
done
 
if [ -z "$wims_home" ]; then exit; fi
 
. $wims_home/public_html/scripts/oef/imgindex
 
Property changes:
Added: svn:executable
/trunk/wims/other/bin/src2def
0,0 → 1,24
#! /bin/sh
 
thisdir=`pwd | sed 's!/cpp$!!;s!/src$!!'`
cd $thisdir
typ=$1
oeftest=`grep '^category=' INDEX 2>/dev/null`
if [ -z "$typ" ]; then echo "$oeftest" | grep oef >/dev/null && typ=oef; fi
if [ -z "$typ" ]; then echo "$oeftest" | grep deductio >/dev/null && typ=deduc; fi
if [ -z "$typ" ]; then echo "$oeftest" | grep document >/dev/null && typ=docu; fi
if [ -z "$typ" ]; then exit; fi
 
lastdir=$thisdir
wims_home=$w_wims_home
 
while [ -z "$wims_home" ] && [ "$lastdir" != "/" ]
do
wims_home=`cat $lastdir/.wimshome 2>/dev/null`
lastdir=`dirname $lastdir`
done
 
if [ -z "$wims_home" ]; then exit; fi
 
. $wims_home/public_html/scripts/$typ/mkindex
 
Property changes:
Added: svn:executable