#!/bin/sh if [ "$1" = "" ] ; then echo No parameter supplied else if ! nocracks-time then exit 0; fi #echo ===== $1 ==== >>/tmp/main.log name=`echo $1 | sed 's/_/ /' | (read a b; echo $a)` step=`echo $1 | sed 's/_/ /' | (read a b; echo $b)` SHOWOPT= if [ "$step" != "" ] ; then SHOWOPT="--show $step" SHOWOPT2="--highlit $step" fi echo name=$name step=$step SHOWOPT=$SHOWOPT >>/tmp/main.log name=`basename $name` prev=none next=none found= for file in `listpage` do if [ "$file" = "----" ] ; then continue; elif [ "$found" != "" ]; then next=$file break elif [ "$file" = "$name" ] ; then found=1 else prev=$file fi done #echo prev=$prev next=$next >>/tmp/main.log #echo DOCDIRS=$DOCDIRS >>/tmp/main.log #echo SOCKPATH=$SOCKPATH >>/tmp/main.log IMGW=2438 IMGH=300 for view in main.html maincontrol.html do case "$name" in *.title) ./nocracks-shell -p $SOCKPATH show /=$view "$name" $SHOWOPT --prev $prev --next $next \ --imageontop --imagewidth 728 --imageheight 1524 --titleimg _sidetitle.jpg ;; *.items) ./nocracks-shell -p $SOCKPATH show /=$view "$name" $SHOWOPT --prev $prev --next $next --nobullet \ --imagewidth $IMGW --imageheight $IMGH --titleimg _top.jpg --titlecolor white ;; *.graph) ./nocracks-shell -p $SOCKPATH show /=$view "$name" $SHOWOPT --titleheight 234 --titleimg top.jpg --titlecolor white ;; *.gr) ./nocracks-shell -p $SOCKPATH show /=$view "$name" $SHOWOPT --prev $prev --next $next --include $DOCDIRS \ --imagewidth $IMGW --imageheight $IMGH --titleimg _top.jpg --titlecolor white ;; *.table) ./nocracks-shell -p $SOCKPATH show /=$view "$name" $SHOWOPT --prev $prev --next $next \ --imagewidth $IMGW --imageheight $IMGH --titleimg _top.jpg --titlecolor white ;; *.html) ./nocracks-shell -p $SOCKPATH show /=$view "$name" $SHOWOPT --prev $prev --next $next \ --imagewidth $IMGW --imageheight $IMGH --titleimg _top.jpg --titlecolor white ;; esac SHOWOPT="$SHOWOPT2" done ./nocracks-shell -p $SOCKPATH show /=sequence.html sequence.sh --currpage $name ./nocracks-shell -p $SOCKPATH show /=comment.html comment.sh --currpage $name fi