diff options
author | Fritz Elfert <felfert@to.com> | 2002-07-16 05:58:13 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2002-07-16 05:58:13 +0000 |
commit | adec25f54995debcaa165864eaaf4654802f0ca0 (patch) | |
tree | 6c60f3f3939ab61af128208ee85eb80bb1ef7ce4 /conf/am_edit | |
parent | eb1cae45049c5b46caf4eba36f67997d921b018b (diff) | |
download | plptools-adec25f54995debcaa165864eaaf4654802f0ca0.tar.gz plptools-adec25f54995debcaa165864eaaf4654802f0ca0.tar.bz2 plptools-adec25f54995debcaa165864eaaf4654802f0ca0.zip |
- Debian package now nearly finished
- Applied patches from Chris Halls <chris.halls@gmx.de>
Diffstat (limited to 'conf/am_edit')
-rw-r--r-- | conf/am_edit | 47 |
1 files changed, 42 insertions, 5 deletions
diff --git a/conf/am_edit b/conf/am_edit index 0f7ad8a..9cb2ca6 100644 --- a/conf/am_edit +++ b/conf/am_edit @@ -345,19 +345,39 @@ sub processMakefile ($) appendLines($cvs_lines); $target_adds{"clean"} .= "kde-rpo-clean "; - foreach $add (keys %target_adds) { - my $lookup = "$add:\s*(.*)"; + # some strange people like to do a install-exec, and expect that also + # all modules are installed. automake doesn't know this, so we need to move + # this here from install-data to install-exec. + if ($MakefileData =~ m/\nkdemodule_LTLIBRARIES\s*=/) { + $target_adds{"install-exec-am"} .= "install-kdemoduleLTLIBRARIES"; + my $lookup = 'install-data-am:\s*(.*)'; if ($MakefileData =~ /\n$lookup\n/) { - substituteLine($lookup, "$add: " . $target_adds{$add} . $1); + my $newdeps = $1; + $newdeps =~ s/\s*install-kdemoduleLTLIBRARIES\s*/ /g; + substituteLine($lookup, "install-data-am: " . $newdeps); } } + + my $lines = ""; + + foreach $add (keys %target_adds) { + my $lookup = quotemeta($add) . ':([^\n]*)'; + if ($MakefileData =~ /\n$lookup\n/) { + substituteLine($lookup, "$add: " . $target_adds{$add} . $1); + } else { + $lines .= "$add: " . $target_adds{$add} . "\n"; + } + } + if ($lines) { + appendLines($lines); + } my $found = 1; while ($found) { if ($MakefileData =~ m/\n(.*)\$\(CXXFLAGS\)(.*)\n/) { - my $vor = $1; - my $nach = $2; + my $vor = $1; # "vor" means before in German + my $nach = $2; # "nach" means after in German my $lookup = quotemeta("$1\$(CXXFLAGS)$2"); my $replacement = "$1\$(KCXXFLAGS)$2"; $MakefileData =~ s/$lookup/$replacement/; @@ -369,8 +389,24 @@ sub processMakefile ($) } } +# $lookup = '(\n[^#].*\$\(LIBTOOL\) --mode=link) (\$\(CXXLD\).*\$\(KCXXFLAGS\))'; +# +# if ($MakefileData =~ m/$lookup/ ) { +# $MakefileData =~ s/$lookup/$1 --tag=CXX $2/; +# } +# +# $lookup = '(\n[^#].*\$\(LIBTOOL\) --mode=compile) (\$\(CXX\).*\$\(KCXXFLAGS\))'; +# if ($MakefileData =~ m/$lookup/ ) { +# $MakefileData =~ s/$lookup/$1 --tag=CXX $2/; +# } + $MakefileData =~ s/\$\(KCXXFLAGS\)/\$\(CXXFLAGS\)/g; + $lookup = '(.*)cp -pr \$\$/\$\$file \$\(distdir\)/\$\$file(.*)'; + if ($MakefileData =~ m/\n$lookup\n/) { + substituteLine($lookup, "$1cp -pr \$\$d/\$\$file \$(distdir)/\$\$file$2"); + } + # Always update the Makefile.in updateMakefile (); return; @@ -1078,6 +1114,7 @@ sub tag_ICON() 'hi22' => 'hicolor/22x22', 'hi32' => 'hicolor/32x32', 'hi48' => 'hicolor/48x48', + 'hi64' => 'hicolor/64x64', 'hisc' => 'hicolor/scalable' ); |