anchor.diff:  type nona >/dev/null 2>&1 || { echo >&2 "Hugin required but it's not installed. Aborting."; exit 1; }
   
   STARTTS=`date +%s`
  -
  -echo "JPEG quality set to ${JPGQUALITY}"
   
   for i in $1
   do
     echo "Processing file: $i"
     OUTNAME=`dirname "$i"`/`basename "${i%.*}"`_pano.jpg
  -  process_panorama $i $OUTDIR/$OUTNAME
  +  process_panorama $i $OUTDIR/$OUTNAME $PTOTMPL
   done
  +
  +if [ "$CREATEGALLERY" == "yes" ]; then
  +  echo "Creating gallery not implemented"
  +fi
   
   # Inform user about the result
   ENDTS=`date +%s`
  
positive.code:   run_command  "nona" "-o" "$TEMPDIR/$OUTTMPNAME" \
                 "-m" "TIFF_m" \
                 "-z" "LZW" \
                 $PTOTMPL \
                 "$1" \
                 "$1"
  
  
negative.code:   set HUGINPATH1=%HUGINPATH2%
  )
  
  rem Do processing of files
  for %%f in (%PROTOINNAME%) do (
    set OUTNAME=%OUTDIR%\%%~nf_pano.jpg
    set INNAME=%%f
    echo "Processing file: %INNAME%"
    call :PROCESSPANORAMA !INNAME! !OUTNAME! !PTOTMPL!
  )
  
  if %CREATEGALLERY% == "yes" (
    echo Creating gallery not yet implemented
  )
  
  rem Time calculation
  