bagder: curl-www/auto update.pl,1.1,1.2

[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-serv28904

Modified Files:
	update.pl 
Log Message:
deal with symlinks better by using the pwd when getting back 


Index: update.pl
===================================================================
RCS file: /cvsroot/curl/curl-www/auto/update.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- update.pl	20 Oct 2006 09:08:20 -0000	1.1
+++ update.pl	20 Oct 2006 09:19:50 -0000	1.2
@@ -53,12 +53,14 @@
 }
 
 # get latest cvs data
+my $cwd=`pwd`; 
+chomp $cwd;
 chdir "curl";
-system("../last5commits.pl > ../dump 2>/dev/null");
+system("$cwd/last5commits.pl > $cwd/dump 2>/dev/null");
 
 chdir "tests";
-system("./keywords.pl > ../../keywords.t 2>/dev/null");
-chdir "../..";
+system("./keywords.pl > $cwd/keywords.t 2>/dev/null");
+chdir "$cwd";
 
 if ( -s "dump") {
     # create html table
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.