From: Augustin Degomme Date: Thu, 26 Sep 2013 17:19:13 +0000 (+0200) Subject: better OS detection X-Git-Tag: v3_9_90~71^2~6 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/366e2438f6c8efaf1d04867ac7a8241198167f55?hp=4aa1db33d4c97c83352c2d04cc60032f64b74b5a better OS detection --- diff --git a/buildtools/Cmake/Scripts/tesh.pl b/buildtools/Cmake/Scripts/tesh.pl index aef4938ff3..cbdc724554 100755 --- a/buildtools/Cmake/Scripts/tesh.pl +++ b/buildtools/Cmake/Scripts/tesh.pl @@ -16,6 +16,7 @@ B [I] I my($bindir)="."; my($srcdir)="."; my $path = $0; +my $OS; $path =~ s|[^/]*$||; push @INC,$path; @@ -24,12 +25,10 @@ use strict; use Term::ANSIColor; use IPC::Open3; -my($OS)=`echo %OS%`; -if($OS eq "%OS%\n"){ +if($^O eq "linux"){ $OS = "UNIX"; } else{ - print("$OS and %OS%\n"); $OS = "WIN"; }