#!/bin/csh -f # pub # ------------------------------------------------------------------------------ # Shell script to publish local files to remote directories and servers. # ------------------------------------------------------------------------------ # Usage: See Usage section below or run with -h or --help option to see usage. # Assumptions: # Effects: # - Copies files to remote directories and servers. # Notes: # Anticipated Changes: # Implementation Notes: # Portability Issues: # Revision History: # $Log$ # ------------------------------------------------------------------------------ if ("$1" == "-h" || "$1" == "--help") then echo "Usage: $0:t [-a]" echo " -a = Also update other servers" exit 1 endif # Note: Don't use ~/fred. For reason, run command: remotepub -h remotepub /home/fred/bin * # Publish Unix scripts to Bristle Web site remotepub /var/www/html/Tips/Unix \ acclog acclogs acclogs2 acctail authorize_ssh_key beep bootlog \ bootlogs boottail cronlog cronlogs crontail dir dirr dirrls dirtree \ dubig e er errlog errlogs errlogs2 errtail ftplog ftplogs ftptail \ ipblock ipunblock logs loop mailerrs mailerrsless \ maillog maillogs mailtail manb mdcp mdmv \ messlog messlogs messtail mysqldb pingfred promptloop pub remotecopy \ seclog seclogs sectail sloop tarball tomcat tripwirereview webstats \ whichcat whiche \ except psgrep diffcprm \ ipaddress \ split_at_chars findclassinjars splitdiff windiff \ pause if ("$1" != "-a") then exit 0 endif # Login to trident to test updates set dir = ~/fred/UNIX/trident/bin $dir:h:t set dir = ~/fred/UNIX/amazon1/bin echo windiff . $dir windiff . $dir set reply = `promptloop "pub $dir (y/n)? " y n` if ($reply == "y") then echo pushd $dir pushd $dir ./pub popd $dir:h:t endif set dir = ~/fred/UNIX/BoonCard/prod1/bin echo windiff . $dir windiff . $dir set reply = `promptloop "pub $dir (y/n)? " y n` if ($reply == "y") then echo pushd $dir pushd $dir ./pub popd boonprod1 endif set dir = ~/fred/UNIX/BoonCard/test1/bin echo windiff . $dir windiff . $dir set reply = `promptloop "pub $dir (y/n)? " y n` if ($reply == "y") then echo pushd $dir pushd $dir ./pub popd boontest1 endif set dir = ~/fred/UNIX/CLSI/www1/bin echo windiff . $dir windiff . $dir set reply = `promptloop "pub $dir (y/n)? " y n` if ($reply == "y") then echo pushd $dir pushd $dir ./pub popd clsi_www1 endif set dir = ~/fred/UNIX/Balanced/cloud1/bin echo windiff . $dir windiff . $dir set reply = `promptloop "pub $dir (y/n)? " y n` if ($reply == "y") then echo pushd $dir pushd $dir ./pub popd $dir:h:t endif