W liście z czw, 08-01-2004, godz. 01:13, Łukasz 'Shufla' Nowak pisze: > Witam,
Witam raz jeszcze. Po konsultacjach na #pld spaczowałem tedia2sql i samego speca. W załącznikach są patche. Pozdrawiam, ide spac :(, Łukasz Nowak
diff -urN tedia2sql-orig/tedia2sql tedia2sql/tedia2sql --- tedia2sql-orig/tedia2sql 2004-01-08 01:22:30.000000000 +0100 +++ tedia2sql/tedia2sql 2004-01-08 01:34:14.000000000 +0100 @@ -108,6 +108,7 @@ my $sqlCommentString = "--"; my $goCommand = ";"; my $sqlIndent = " "; +my $version = "1.2.9"; my $versionInfo = "tedia2sql -- v1.2.9"; my $authorInfo = "See http://tedia2sql.tigris.org/AUTHORS.html for tedia2sql author information"; my $verbose = undef; @@ -1758,13 +1759,12 @@ # # if rcfile has PARAM .= VAL then @PARAM will exist with # each successive element of VAL being PUSHed onto the array - if (open (RCFILE, "< $rcFileName")) { + my $homeFile = $ENV{HOME} . "/.tedia2sqlrc"; + if (open (RCFILE, "< $homeFile")) { # all is cool - } elsif ($rcFileName =~ /.*?\/(\w+)$/) { - my $tryThisFile = $ENV{HOME} . "/.$1"; - open (RCFILE, "< $tryThisFile") || die "Can't open $rcFileName or $tryThisFile"; - } else { - die "Can't open $rcFileName and can't determine what the rcfile should be..."; + } + else { + die "Can't open $homeFile, gunzip it from /usr/share/doc/tedia2sql-$version/tedia2sqlrc.gz"; } push (@{$cfg->{_rcFileName}}, {file=>$rcFileName,date=>scalar (localtime())});
--- tedia2sql.spec-orig 2004-01-08 01:36:17.000000000 +0100 +++ tedia2sql.spec 2004-01-08 01:38:06.000000000 +0100 @@ -8,6 +8,7 @@ Group: Development/Tools Source0: http://tedia2sql.tigris.org/files/documents/282/5625/%{name}-129.tar.gz # Source0-md5: 1396374395a9c876a5638ecd25139712 +Patch0: %{name}-%{name}rc-home.patch URL: http://tedia2sql.tigris.org/ Requires: dia >= 0.90 Requires: expat >= 1.95.3 @@ -29,6 +30,7 @@ %prep %setup -q -n %{name} +%patch0 -p1 %build @@ -50,7 +52,7 @@ %files %defattr(644,root,root,755) %doc README tedia2sqlrc www/*.html www/*.sql www/*.dia -%attr(755,root,root,755) %{_bindir}/* +%attr(755,root,root) %{_bindir}/* %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog
__________________________________________________________ nie pytaj co inni zrobili dla pld, pomysl ile sam zrobiles
