Changeset 6 for banobsd/trunk
- Timestamp:
- Nov 22, 2009, 2:18:19 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
banobsd/trunk/pkg_download.sh
r5 r6 13 13 OS_RELEASE=`sysctl -n kern.osrelease | awk -F- '{print $1}'` 14 14 PKGURL=ftp://ftp.nl.freebsd.org/pub/FreeBSD/ports/i386/packages-${OS_RELEASE}-release/All 15 PKGDIR= /tmp/packages15 PKGDIR=$(cd `dirname $0`; pwd -P)/packages 16 16 17 17 echo "# Using PKGURL $PKGURL" … … 23 23 24 24 err_failed() { 25 echo " FAILED"25 echo "$*FAILED" 1>&2 26 26 rm -R $TMPDIR 27 27 exit 1 … … 45 45 for package in $PACKAGELIST; do 46 46 pkg=`awk -F\| "/\/$package\|/ {print \\$1}" INDEX` 47 if [ -z "$pkg" ]; then 48 err_failed "# Finding version of $package " 49 fi 47 50 printf "## %-${len}s -> $pkg\n" $package 48 51 PACKAGES="${PACKAGES} $pkg"
Note:
See TracChangeset
for help on using the changeset viewer.