A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kill simcall_host_get_by_name: nobody uses it anyway
[simgrid.git]
/
tools
/
sg_unit_extractor.pl
diff --git
a/tools/sg_unit_extractor.pl
b/tools/sg_unit_extractor.pl
index 66ef7d7dcd33d649a301728b01ad18a6f78c9486..1c29e79fabad5ae6fcca8a84501909cfa8700374 100755
(executable)
--- a/
tools/sg_unit_extractor.pl
+++ b/
tools/sg_unit_extractor.pl
@@
-1,5
+1,11
@@
#! /usr/bin/perl
#! /usr/bin/perl
+# Copyright (c) 2005-2012, 2014. The SimGrid Team.
+# All rights reserved.
+
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the license (GNU LGPL) which comes with this package.
+
use strict;
use strict;
use strict;
use strict;
@@
-38,6
+44,7
@@
sub process_one($) {
$outfile = $infile;
$outfile =~ s/\.c$/_unit.c/;
$outfile = $infile;
$outfile =~ s/\.c$/_unit.c/;
+ $outfile =~ s/\.cpp$/_unit.cpp/;
$outfile =~ s|.*/([^/]*)$|$1| if $outfile =~ m|/|;
$outfile = "$outdir$outfile";
$outfile =~ s|.*/([^/]*)$|$1| if $outfile =~ m|/|;
$outfile = "$outdir$outfile";