2006年08月21日(月)


INDEX for ports VI

PC : 恥ずかしい bug が....。

--- svi 18 Aug 2006 10:50:11 -0000      1.1
+++ svi 21 Aug 2006 00:36:44 -0000      1.2
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id: svi,v 1.1 2006/08/18 10:50:11 xxxx Exp $
+# $Id: svi,v 1.2 2006/08/21 00:36:44 xxxx Exp $

 export LANG="C"
 export PORTS_DIR="/usr/ports"
@@ -7,7 +7,8 @@
 export PORTSDB_FLAGS=""
 export PORTVERSION="/usr/local/sbin/portversion"
 export PORTVERSION_FLAGS="-L="
-export TAR_URL='http://www.freebsd.org/cgi/cvsweb.cgi/ports/%TARGET%/%FN%.tar.gz?tarball=1'
+export TAR_URL_ORIG='http://www.freebsd.org/cgi/cvsweb.cgi/ports/%TARGET%/%FN%.tar.gz?tarball=1'
+export TAR_URL="${TAR_URL_ORIG}"

 if [ -x "$PORTSDB" -a -x "$PORTVERSION" ] ; then
     "$PORTSDB" ${PORTSDB_FLAGS} 2>&1 > /dev/null
@@ -26,6 +27,7 @@
                 for p in ${TARGET}
                 do
                     FN=`basename "${p}"`
+                    TAR_URL="${TAR_URL_ORIG}"
                     TAR_URL=`echo "$TAR_URL" | sed "s#%TARGET%#${p}#"`
                     TAR_URL=`echo "$TAR_URL" | sed "s#%FN%#${FN}#"`


generated by makediary-2.11