~neon/kde-dev-scripts/master

« back to all changes in this revision

Viewing changes to kf5/adapt_cmakelists_file.pl

  • Committer: Montel Laurent
  • Date: 2015-01-11 07:01:44 UTC
  • Revision ID: git-v1:5e364ed10be42787aee425e4fb6d8e5d101aa6a3
Allow to port multi file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/perl -w
2
2
 
3
 
# Laurent Montel <montel@kde.org> 2014
4
 
# Modifies CMakeLists.txt in current directory to use kf5 macro
 
3
# Laurent Montel <montel@kde.org> 2014-2015
 
4
# Modifies CMakeLists.txt to use kf5 macro
 
5
# find -iname "CMakeLists.txt" |xargs kde-dev-scripts/kf5/adapt_cmakelists_file.pl
5
6
 
6
7
use strict;
7
 
my $file = "CMakeLists.txt";
 
8
 
 
9
foreach my $file (@ARGV) {
8
10
open(my $FILE, "<", $file) || die;
9
11
my $modified = 0;
10
12
my @l = map {
530
532
    print $OUT @l;
531
533
    close ($OUT);
532
534
}
 
535
}