[Kde-cygwin-cvs] CVS: gentoo-portage-cygwin/files/usr/portage makeebuilds.pl,1.3,1.4
Status: Inactive
Brought to you by:
habacker
From: Ralf H. <hab...@us...> - 2003-08-17 23:53:40
|
Update of /cvsroot/kde-cygwin/gentoo-portage-cygwin/files/usr/portage In directory sc8-pr-cvs1:/tmp/cvs-serv5439 Modified Files: makeebuilds.pl Log Message: use var for ebuilds category dir instead of hardcoding directory path Index: makeebuilds.pl =================================================================== RCS file: /cvsroot/kde-cygwin/gentoo-portage-cygwin/files/usr/portage/makeebuilds.pl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- makeebuilds.pl 17 Aug 2003 23:06:53 -0000 1.3 +++ makeebuilds.pl 17 Aug 2003 23:10:40 -0000 1.4 @@ -4,6 +4,8 @@ open IN, "<setup.ini" || die "couldnt open file" ; $mydir = "/opt/gentoo-rsync/cygwin-portage"; +$mycatdir = "cygwin-binaries"; + $mymirror="ftp://ftp.gwdg.de/pub/linux/sources.redhat.com/cygwin/"; #print <IN>; @@ -84,7 +86,7 @@ return } - my $mypkgdir = $mydir . "/cygwin-binaries/" . $name . "/" ; + my $mypkgdir = $mydir . "/" . $mycatdir . "/" . $name . "/" ; mkdir $mypkgdir || die "processpkg mkdir"; ## my $eversion = ""; @@ -104,7 +106,7 @@ my $realdeps; foreach $foo ( split / /, $requirements ) { # print "******* " . $foo . "\n"; - $realdeps .= "\tcygwin-binaries/".$foo."\n"; + $realdeps .= "\t".$mycatdir."/".$foo."\n"; } $ebuild =~s/___DEPEND___/$realdeps/g; @@ -193,8 +195,8 @@ $name = ""; $isfirstpkgstart=1; -mkdir $mydir . "/cygwin-binaries" || - die "could not make cygwin-binaries dir\n" ; +mkdir $mydir . "/" . $mycatdir || + die "could not make '". $mycatdir ."' dir\n" ; while ( <IN> ) { # print "lala " . $_; |