Changeset 265


Ignore:
Timestamp:
Jan 9, 2011, 9:17:15 AM (14 years ago)
Author:
Rick van der Zwet
Message:

Buildin check to ensure I am using the latest version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd-mgnt/system-update.sh

    r193 r265  
    11#!/bin/sh
    2 # FreeBSD system upgade script
     2# FreeBSD system port upgrade script
    33#
    44# Licence: BSDLike - http://rickvanderzwet.nl/LICENSE
     
    77. /etc/rc.subr
    88
    9 # Pointers to avoid confusion corresponts with logical boolean style values.
    10 # WARNING do not conpare with exit codes!
     9# Pointers to avoid confusion co-respond with logical boolean style values.
     10# WARNING do not compare with exit codes!
    1111FALSE=0
    1212TRUE=1
     
    3030}
    3131
     32
    3233#
    3334# SuperCow power only
     
    3738fi
    3839
     40# Make sure we always using the latest version
     41CHANGES=`svn up --non-interactive $(dirname $0) | wc -l`
     42if [ $CHANGES -gt 1 ]; then
     43  sh $0
     44  exit 0
     45fi
    3946
    4047#
Note: See TracChangeset for help on using the changeset viewer.