diff options
author | Slávek Banko <[email protected]> | 2013-07-23 01:37:03 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-07-23 01:37:03 +0200 |
commit | b0b1269481829b26c9b8be60cedc1b6e2f5a35a2 (patch) | |
tree | ec78efc4b8407fded94de44489045d2a23373928 /smoke/qt/generate_makefile_am.pl | |
parent | d5696aa6fa8e96e91de9d1adc1c8eb7cc7125645 (diff) | |
download | libtqt-perl-b0b1269481829b26c9b8be60cedc1b6e2f5a35a2.tar.gz libtqt-perl-b0b1269481829b26c9b8be60cedc1b6e2f5a35a2.zip |
Rename smokeqt -> smoketqt
Diffstat (limited to 'smoke/qt/generate_makefile_am.pl')
-rwxr-xr-x | smoke/qt/generate_makefile_am.pl | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/smoke/qt/generate_makefile_am.pl b/smoke/qt/generate_makefile_am.pl deleted file mode 100755 index 49cdd49..0000000 --- a/smoke/qt/generate_makefile_am.pl +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/perl -w - -use File::Basename; -use File::Copy qw|cp|; -use File::Compare; -use Cwd; - -my $here = getcwd; -my $outdir = $here; -my $tempfile = "$outdir/.Makefile.am.tmpfile"; - -# Update list of source files in $outdir/Makefile.am -open( MAKEFILE, "<$outdir/Makefile.am" ) or die; -my $makeFileData = ''; -my $found = 0; -while (<MAKEFILE>) { - if (/^libsmokeqt_la_SOURCES/) - { - $found = 1; - $makeFileData .= "libsmokeqt_la_SOURCES = smokedata.cpp"; - } - $makeFileData .= $_ if (!$found); -} -close MAKEFILE; - -die "libsmokeqt_la_SOURCES not found" if (!$found); - -open( MAKEFILE, ">$tempfile" ) or die; -print MAKEFILE $makeFileData; - -my $count = 0; -opendir (FILES, $outdir) or die; -foreach $filename (readdir(FILES)) { - if ( $filename =~ /^x_.*\.cpp$/ ) { - if ( $count++ == 7 ) { - $count = 0; - print MAKEFILE " \\\n"; - } - print MAKEFILE " $filename"; - } -} - -print MAKEFILE "\n"; -close MAKEFILE; -closedir FILES; - -if (compare("$tempfile", "$outdir/Makefile.am")) { - cp("$tempfile", "$outdir/Makefile.am"); - print STDERR "Makefile.am updated.\n"; -} -else { - print STDERR "Makefile.am unchanged.\n"; -} -unlink $tempfile; - -exit 0; |