diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-16 00:53:50 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-16 00:53:50 +0000 |
commit | c09bb9c1169147c873d565cd4790f9a3adcc45c3 (patch) | |
tree | 99b00062be25737e04760e311c7ec21a661316ca /usr | |
parent | 253d5e755dfc5b33d6f7b52ea78f2a261681b28e (diff) | |
download | pfsense-c09bb9c1169147c873d565cd4790f9a3adcc45c3.zip pfsense-c09bb9c1169147c873d565cd4790f9a3adcc45c3.tar.gz |
Remove update_file.sh, its not pulling from RELENG_1 correctly
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/sbin/update_file.sh | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/usr/local/sbin/update_file.sh b/usr/local/sbin/update_file.sh deleted file mode 100755 index ed187bd..0000000 --- a/usr/local/sbin/update_file.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -if [ ! -x `which fetch` ];then - echo "no fetch found, I think databeestje lost that part" - exit 0 -fi - -baseurl='http://pfsense.com/cgi-bin/cvsweb.cgi/pfSense' -urlrev='?rev=' -urlcon=';content-type=text%2Fplain;only_with_tag=RELENG_1' -rev='1' - -if [ -z $1 ];then - echo "No file to update given" - echo "Usage: `basename $0` /path/to/file [revision]" - echo "Usage: `basename $0` -all" - exit 0 -fi - -if [ "$1" = "-all" ];then - echo "This will update all .php .js and .inc pages on your pfsense box!" - FMATCHES=`find /etc/inc/ /usr/local/www /usr/local/captiveportal -name "*.php" -or -name "*.inc" -or -name "*.js"` -elif [ ! -f $1 ];then - echo "File $1 doesn't exist" - exit 0 -else - FMATCHES=$1 -fi - -/etc/rc.conf_mount_rw - -for file in $FMATCHES ;do - if [ ! -z $2 ];then - rev=$2 - echo "trying to fetch $rev $file" - else - echo "trying to fetch latest $file" - fi - #echo fetch -o "$file" "$baseurl$file$urlrev$rev$urlcon" - `which fetch` -o "$file" "$baseurl$file$urlrev$rev$urlcon" -done - -/etc/rc.conf_mount_ro |