#!/bin/ksh ### analysis_sync.sh ### ### Retrieve files in Peforce analysis depot ### Remove spaces and punctuation chars from file names ### Convert ### date PATH=/usr/local/bin:$PATH xdir=/usr/tomcat/webapps/ROOT/analysis P4CLIENT=www.setgetweb.com.analysis P4PORT=www.setgetweb.com:1666 P4ROOT=/usr/p4 ## rm -rf $xdir/* #p4 sync -f p4 sync cd $xdir lose_spaces.sh cd $xdir for q in `find . -name \*.doc -daystart -mtime -6 -print` do i=`dirname $q` cd $i z=`basename $q .doc` echo "echo $i/$z.html" #wvHtml $z.doc $z.html cleanwvHtml.sh $z.html #rm -f $z.doc cd $xdir done cd $xdir analysisidx.sh date