Remove hardcoded strings

This commit is contained in:
Laurent Destailleur 2013-11-30 10:58:43 +01:00
parent abec634960
commit e0dd3090c9
3 changed files with 6 additions and 6 deletions

View File

@ -45,9 +45,9 @@ elsif ( "$^O" =~ /cygwin/i || "$^O" =~ /win32/i ) {
$CR = "\r"; $CR = "\r";
} }
if ( !$OS ) { if ( !$OS ) {
print "makepack-dolbarrlang.pl was not able to detect your OS.\n"; print "$PROG.$Extension was not able to detect your OS.\n";
print "Can't continue.\n"; print "Can't continue.\n";
print "makepack-dolibarrlang.pl aborted.\n"; print "$PROG.$Extension aborted.\n";
sleep 2; sleep 2;
exit 1; exit 1;
} }

View File

@ -37,9 +37,9 @@ if ("$^O" =~ /linux/i || (-d "/etc" && -d "/var" && "$^O" !~ /cygwin/i)) { $OS='
elsif (-d "/etc" && -d "/Users") { $OS='macosx'; $CR=''; } elsif (-d "/etc" && -d "/Users") { $OS='macosx'; $CR=''; }
elsif ("$^O" =~ /cygwin/i || "$^O" =~ /win32/i) { $OS='windows'; $CR="\r"; } elsif ("$^O" =~ /cygwin/i || "$^O" =~ /win32/i) { $OS='windows'; $CR="\r"; }
if (! $OS) { if (! $OS) {
print "makepack-dolbarrmodule.pl was not able to detect your OS.\n"; print "$PROG.$Extension was not able to detect your OS.\n";
print "Can't continue.\n"; print "Can't continue.\n";
print "makepack-dolibarrmodule.pl aborted.\n"; print "$PROG.$Extension aborted.\n";
sleep 2; sleep 2;
exit 1; exit 1;
} }

View File

@ -41,9 +41,9 @@ if ("$^O" =~ /linux/i || (-d "/etc" && -d "/var" && "$^O" !~ /cygwin/i)) { $OS='
elsif (-d "/etc" && -d "/Users") { $OS='macosx'; $CR=''; } elsif (-d "/etc" && -d "/Users") { $OS='macosx'; $CR=''; }
elsif ("$^O" =~ /cygwin/i || "$^O" =~ /win32/i) { $OS='windows'; $CR="\r"; } elsif ("$^O" =~ /cygwin/i || "$^O" =~ /win32/i) { $OS='windows'; $CR="\r"; }
if (! $OS) { if (! $OS) {
print "makepack-dolbarrtheme.pl was not able to detect your OS.\n"; print "$PROG.$Extension was not able to detect your OS.\n";
print "Can't continue.\n"; print "Can't continue.\n";
print "makepack-dolibarrtheme.pl aborted.\n"; print "$PROG.$Extension aborted.\n";
sleep 2; sleep 2;
exit 1; exit 1;
} }