Last change
on this file since 127 was 119, checked in by Rick van der Zwet, 14 years ago |
Relative file location the proper way
|
-
Property svn:executable
set to
*
|
File size:
383 bytes
|
Rev | Line | |
---|
[84] | 1 | #!/bin/sh
|
---|
| 2 | # FreeBSD system upgade script
|
---|
| 3 | #
|
---|
| 4 | # Licence: BSDLike - http://rickvanderzwet.nl/LICENSE
|
---|
| 5 | # Rick van der Zwet <info@rickvanderzwet.nl>
|
---|
| 6 |
|
---|
| 7 | if [ `id -u` -ne 0 ]; then
|
---|
| 8 | echo "Sorry root only" 1>&2
|
---|
| 9 | exit 128
|
---|
| 10 | fi
|
---|
| 11 |
|
---|
[119] | 12 | DIRNAME=`dirname $0`
|
---|
[84] | 13 |
|
---|
[119] | 14 | $DIRNAME/port-list.sh
|
---|
| 15 |
|
---|
[84] | 16 | # Update port tree
|
---|
| 17 | portsnap update
|
---|
| 18 |
|
---|
| 19 | # Update ports
|
---|
| 20 | NEWPORTS=`pkg_version -qL=`
|
---|
| 21 | portupgrade -r -mBATCH=yes -a $NEWPORTS
|
---|
Note:
See
TracBrowser
for help on using the repository browser.