#!/bin/tcsh cd $0:h cvs -q update config_files cd config_files # The source argument contains a real colon and slashes. The destination # argument replaces all of the colons and slashes with # characters. The # destination argument is a legal filename and doesn't confuse scp. # # # is a comment character in a script, but not from the interactive command # line. # doesn't usually have any special meaning as part of a file name. # # is just not popular in file names because it might cause problems in # scripts. # # I've removed the fancy unicode characters. The unicode characters worked # better in some places than others. When we use WinCVS we see really odd # characters in the file names. The data in the files is good. SmartCVS had # other problems. Julio was completely avoiding this directory because it was # so bad in SmartCVS. foreach orig ( \ dice:/etc/lighttpd/lighttpd.conf \ dice:/etc/lighttpd/lab-bob-saget-test.conf \ dana:/etc/lighttpd/lighttpd.conf \ dana:/etc/lighttpd/lab-bob-saget-test.conf \ # bob-saget:/etc/httpd/conf/httpd.conf \ # bob-saget:/etc/httpd/conf.d/fake_ssl.conf \ # bob-saget:/etc/httpd/conf.d/trade_ideas.conf \ # bob-saget:/etc/httpd/conf.d/cms_complement.conf \ comic-con:/etc/httpd/conf/httpd.conf \ comic-con:/etc/httpd/conf.d/fake_ssl.conf \ comic-con:/etc/httpd/conf.d/trade_ideas.conf \ comic-con:/etc/httpd/conf.d/cms_complement.conf \ comic-con:/etc/httpd/conf.d/fake_ssl_proxy.conf \ kwanzaabot:/etc/rc.d/rc.firewall \ kwanzaabot:/etc/lighttpd/lighttpd.conf \ kwanzaabot:/etc/lighttpd/lab-bob-saget-test.conf \ kwanzaabot:/etc/hosts \ marvin:/etc/apache2/sites-available/ssl.conf \ marvin:/etc/apache2/sites-available/trade_ideas.conf \ will:/etc/php.ini \ will:/etc/httpd/conf.d/trade_ideas.conf \ hermes:/home/phil/cpp_alert_server/live_server/start_all \ chuck-liddell:/home/phil/cpp_alert_server/live_server/start_all \ dana:/home/phil/cpp_alert_server/live_server/start_all \ dice:/home/phil/cpp_alert_server/live_server/start_all \ sinclair-2k:/home/phil/cpp_alert_server/live_server/start_all \ daisy-mae-128k:/home/phil/cpp_alert_server/live_server/start_all \ fogell:/home/phil/cpp_alert_server/live_server/start_all \ jules:/home/phil/cpp_alert_server/live_server/start_all \ becca:/home/phil/cpp_alert_server/live_server/start_all \ ) set local=`echo $orig|sed -e 's|[/:]|#|g'` #echo $orig -- $local scp $orig $local >/dev/null end #scp ari:/etc/rc.d/rc.firewall ari꞉⁄etc⁄rc.d⁄rc.firewall >/dev/null # -q helps some. It prevents cvs from listing directories. It still prints # a log to the standard output if something is committed. cvs -q commit -m "Automatic update from $0" >>/tmp/config_files_submit_log.txt # This was giving us some trouble. Hanging for some reason. So I removed it. # rosario:/etc/rc.d/rc.firewall \