danf: curl-www/auto autocurl.txt,1.3,1.4

[email protected]
Newsgroups gmane.comp.web.curl.www.cvs
Message-ID <[email protected]>
Update of /cvsroot/curl/curl-www/auto
In directory labb:/tmp/cvs-serv15989

Modified Files:
	autocurl.txt 
Log Message:
Portability fixes

Index: autocurl.txt
===================================================================
RCS file: /cvsroot/curl/curl-www/auto/autocurl.txt,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- autocurl.txt	22 Mar 2005 23:58:28 -0000	1.3
+++ autocurl.txt	8 Apr 2005 02:28:12 -0000	1.4
@@ -47,19 +47,21 @@
   fi
 }
 
+# The new file is ready just after 0200h UTC
 TODAY=`env TZ=Etc/GMT+2 date +%Y%m%d`
 
-cd $BUILD
+cd "$BUILD"
 
+# Parse the daily builds index page for today's file name
 NEWCURLURL=`$CURL $CURLOPTS $URL | grep "href=.*$TODAY.tar.bz2" | sed -e 's/^.*href="//' -e 's/".*//'`
 NEWCURL=`basename $NEWCURLURL`
-if [ ! -e "$NEWCURL" ] ; then
+if [ ! -r "$NEWCURL" ] ; then
   $CURL $CURLOPTS -o $NEWCURL $NEWCURLURL
 fi
 ret=$?
 
 if [ "$ret" -eq "0" ]; then
-  LIST=`tar xjvf $NEWCURL | wc -c`
+  LIST=`bzip2 -dc $NEWCURL | tar xvf - | wc -l`
   ret=$?
   if [ $LIST -eq 0 -o $ret -gt 0 ]; then
     notify "Empty tar file?"

_______________________________________________
http://cool.haxx.se/mailman/listinfo/curl-www-commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.