summaryrefslogtreecommitdiffstats
path: root/smoke/qt/generate_makefile_am.pl
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-07-23 01:37:49 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-07-23 01:37:49 +0200
commit3d89f5e5c4efb3a3e8fe05540ef4f7cf104d371f (patch)
tree9b254c811c8aa56429c642c7807312090d675c27 /smoke/qt/generate_makefile_am.pl
parentd2dde67b0fd0afbdfaa4411a135f1dc1192edf1f (diff)
downloadtdebindings-3d89f5e5c4efb3a3e8fe05540ef4f7cf104d371f.tar.gz
tdebindings-3d89f5e5c4efb3a3e8fe05540ef4f7cf104d371f.zip
Rename smokeqt -> smoketqt
Diffstat (limited to 'smoke/qt/generate_makefile_am.pl')
-rwxr-xr-xsmoke/qt/generate_makefile_am.pl55
1 files changed, 0 insertions, 55 deletions
diff --git a/smoke/qt/generate_makefile_am.pl b/smoke/qt/generate_makefile_am.pl
deleted file mode 100755
index 03f51747..00000000
--- a/smoke/qt/generate_makefile_am.pl
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/usr/bin/perl -w
-
-use File::Basename;
-
-my $here = `pwd`;
-chomp $here;
-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;
-
-system "cmp -s $tempfile $outdir/Makefile.am";
-if ($? >> 8) {
- system "cp -f $tempfile $outdir/Makefile.am";
- print STDERR "Makefile.am updated.\n";
-}
-else {
- print STDERR "Makefile.am unchanged.\n";
-}
-system "rm -f $tempfile";
-
-exit 0;