Skip to content

Use LF line endings on all perl build scripts #1015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,620 changes: 1,810 additions & 1,810 deletions external/buildscripts/build.pl

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions external/buildscripts/build_all_linux.pl
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
use Cwd;
use Cwd 'abs_path';
use Getopt::Long;
use File::Basename;
use File::Path;
my $currentdir = getcwd();
my $monoroot = File::Spec->rel2abs(dirname(__FILE__) . "/../..");
my $monoroot = abs_path($monoroot);
my $buildscriptsdir = "$monoroot/external/buildscripts";
my @passAlongArgs = ();
foreach my $arg (@ARGV)
{
# Filter out --clean if someone uses it. We have to clean since we are doing two builds
if (not $arg =~ /^--clean=/)
{
push @passAlongArgs, $arg;
}
}
print(">>> Building i386\n");
system("perl", "$buildscriptsdir/build.pl", "--arch32=1", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building i386');
print(">>> Building x86_64\n");
use Cwd;
use Cwd 'abs_path';
use Getopt::Long;
use File::Basename;
use File::Path;

my $currentdir = getcwd();

my $monoroot = File::Spec->rel2abs(dirname(__FILE__) . "/../..");
my $monoroot = abs_path($monoroot);
my $buildscriptsdir = "$monoroot/external/buildscripts";

my @passAlongArgs = ();
foreach my $arg (@ARGV)
{
# Filter out --clean if someone uses it. We have to clean since we are doing two builds
if (not $arg =~ /^--clean=/)
{
push @passAlongArgs, $arg;
}
}

print(">>> Building i386\n");
system("perl", "$buildscriptsdir/build.pl", "--arch32=1", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building i386');

print(">>> Building x86_64\n");
system("perl", "$buildscriptsdir/build.pl", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building x86_64');
52 changes: 26 additions & 26 deletions external/buildscripts/build_all_win.pl
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
use Cwd;
use Cwd 'abs_path';
use Getopt::Long;
use File::Basename;
use File::Path;
my $currentdir = getcwd();
my $monoroot = File::Spec->rel2abs(dirname(__FILE__) . "/../..");
my $monoroot = abs_path($monoroot);
my $buildscriptsdir = "$monoroot/external/buildscripts";
my @passAlongArgs = ();
foreach my $arg (@ARGV)
{
# Filter out --clean if someone uses it. We have to clean since we are doing two builds
if (not $arg =~ /^--clean=/)
{
push @passAlongArgs, $arg;
}
}
print(">>> Building i686\n");
system("perl", "$buildscriptsdir/build_win_wrapper.pl", "--arch32=1", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building win32');
print(">>> Building x86_64\n");
use Cwd;
use Cwd 'abs_path';
use Getopt::Long;
use File::Basename;
use File::Path;

my $currentdir = getcwd();

my $monoroot = File::Spec->rel2abs(dirname(__FILE__) . "/../..");
my $monoroot = abs_path($monoroot);
my $buildscriptsdir = "$monoroot/external/buildscripts";

my @passAlongArgs = ();
foreach my $arg (@ARGV)
{
# Filter out --clean if someone uses it. We have to clean since we are doing two builds
if (not $arg =~ /^--clean=/)
{
push @passAlongArgs, $arg;
}
}

print(">>> Building i686\n");
system("perl", "$buildscriptsdir/build_win_wrapper.pl", "--arch32=1", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building win32');

print(">>> Building x86_64\n");
system("perl", "$buildscriptsdir/build_win_wrapper.pl", "--clean=1", "--classlibtests=0", @passAlongArgs) eq 0 or die ('failing building x64');
80 changes: 40 additions & 40 deletions external/buildscripts/build_classlibs_osx.pl
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
use Cwd;
use Cwd 'abs_path';
use Getopt::Long;
use File::Basename;
use File::Path;
my $monoroot = File::Spec->rel2abs(dirname(__FILE__) . "/../..");
my $monoroot = abs_path($monoroot);
my $buildScriptsRoot = "$monoroot/external/buildscripts";
my $build = 1;
my $clean = 1;
my $mcsOnly = 0;
my $skipMonoMake = 0;
# Handy troubleshooting/niche options
# The prefix hack probably isn't needed anymore. Let's disable it by default and see how things go
my $shortPrefix = 1;
GetOptions(
"build=i"=>\$build,
"clean=i"=>\$clean,
"mcsOnly=i"=>\$mcsOnly,
'skipmonomake=i'=>\$skipMonoMake,
'shortprefix=i'=>\$shortPrefix,
) or die ("illegal cmdline options");
system(
"perl",
"$buildScriptsRoot/build.pl",
"--build=$build",
"--clean=$clean",
"--mcsonly=$mcsOnly",
"--skipmonomake=$skipMonoMake",
"--artifact=1",
"--artifactscommon=1",
"--buildusandboo=1",
"--forcedefaultbuilddeps=1",
"--shortprefix=$shortPrefix") eq 0 or die ("Failed building mono\n");
use Cwd;
use Cwd 'abs_path';
use Getopt::Long;
use File::Basename;
use File::Path;

my $monoroot = File::Spec->rel2abs(dirname(__FILE__) . "/../..");
my $monoroot = abs_path($monoroot);
my $buildScriptsRoot = "$monoroot/external/buildscripts";

my $build = 1;
my $clean = 1;
my $mcsOnly = 0;
my $skipMonoMake = 0;

# Handy troubleshooting/niche options

# The prefix hack probably isn't needed anymore. Let's disable it by default and see how things go
my $shortPrefix = 1;

GetOptions(
"build=i"=>\$build,
"clean=i"=>\$clean,
"mcsOnly=i"=>\$mcsOnly,
'skipmonomake=i'=>\$skipMonoMake,
'shortprefix=i'=>\$shortPrefix,
) or die ("illegal cmdline options");

system(
"perl",
"$buildScriptsRoot/build.pl",
"--build=$build",
"--clean=$clean",
"--mcsonly=$mcsOnly",
"--skipmonomake=$skipMonoMake",
"--artifact=1",
"--artifactscommon=1",
"--buildusandboo=1",
"--forcedefaultbuilddeps=1",
"--shortprefix=$shortPrefix") eq 0 or die ("Failed building mono\n");
106 changes: 53 additions & 53 deletions external/buildscripts/build_classlibs_wsl.pl
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
use Cwd;
use Cwd 'abs_path';
use Getopt::Long;
use File::Basename;
use File::Path;
my $monoroot = File::Spec->rel2abs(dirname(__FILE__) . "/../..");
my $monoroot = abs_path($monoroot);
my $buildScriptsRoot = "$monoroot/external/buildscripts";
my $build = 1;
my $clean = 1;
my $mcsOnly = 0;
my $skipMonoMake = 0;
# Handy troubleshooting/niche options
# The prefix hack probably isn't needed anymore. Let's disable it by default and see how things go
my $shortPrefix = 1;
# This script should not be ran on windows, if it is, kindly switch over to wsl
if ($^O eq "MSWin32")
{
print(">>> Called from Windows. Switching over to wsl\n");
my $monoRootInBash = `bash -c pwd`;
chomp $monoRootInBash;
print(">>> monoRootInBash = $monoRootInBash\n");
my $cmdForBash = "$monoRootInBash/external/buildscripts/build_classlibs_wsl.pl @ARGV";
system("bash", "-c", "\"perl $cmdForBash\"") eq 0 or die("\n");
exit 0;
}
GetOptions(
"build=i"=>\$build,
"clean=i"=>\$clean,
"mcsOnly=i"=>\$mcsOnly,
'skipmonomake=i'=>\$skipMonoMake,
'shortprefix=i'=>\$shortPrefix,
) or die ("illegal cmdline options");
system(
"perl",
"$buildScriptsRoot/build.pl",
"--build=$build",
"--clean=$clean",
"--mcsonly=$mcsOnly",
"--skipmonomake=$skipMonoMake",
"--artifact=1",
"--artifactscommon=1",
"--buildusandboo=1",
"--forcedefaultbuilddeps=1",
"--windowssubsystemforlinux=1",
"--shortprefix=$shortPrefix") eq 0 or die ("Failed building mono\n");
use Cwd;
use Cwd 'abs_path';
use Getopt::Long;
use File::Basename;
use File::Path;

my $monoroot = File::Spec->rel2abs(dirname(__FILE__) . "/../..");
my $monoroot = abs_path($monoroot);
my $buildScriptsRoot = "$monoroot/external/buildscripts";

my $build = 1;
my $clean = 1;
my $mcsOnly = 0;
my $skipMonoMake = 0;

# Handy troubleshooting/niche options

# The prefix hack probably isn't needed anymore. Let's disable it by default and see how things go
my $shortPrefix = 1;

# This script should not be ran on windows, if it is, kindly switch over to wsl
if ($^O eq "MSWin32")
{
print(">>> Called from Windows. Switching over to wsl\n");
my $monoRootInBash = `bash -c pwd`;
chomp $monoRootInBash;
print(">>> monoRootInBash = $monoRootInBash\n");
my $cmdForBash = "$monoRootInBash/external/buildscripts/build_classlibs_wsl.pl @ARGV";
system("bash", "-c", "\"perl $cmdForBash\"") eq 0 or die("\n");
exit 0;
}

GetOptions(
"build=i"=>\$build,
"clean=i"=>\$clean,
"mcsOnly=i"=>\$mcsOnly,
'skipmonomake=i'=>\$skipMonoMake,
'shortprefix=i'=>\$shortPrefix,
) or die ("illegal cmdline options");

system(
"perl",
"$buildScriptsRoot/build.pl",
"--build=$build",
"--clean=$clean",
"--mcsonly=$mcsOnly",
"--skipmonomake=$skipMonoMake",
"--artifact=1",
"--artifactscommon=1",
"--buildusandboo=1",
"--forcedefaultbuilddeps=1",
"--windowssubsystemforlinux=1",
"--shortprefix=$shortPrefix") eq 0 or die ("Failed building mono\n");
36 changes: 18 additions & 18 deletions external/buildscripts/build_ios_xwin.pl
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
use Cwd;
use Cwd 'abs_path';
use Getopt::Long;
use File::Basename;
use File::Path;
my $monoroot = File::Spec->rel2abs(dirname(__FILE__) . "/../..");
my $monoroot = abs_path($monoroot);
my $buildScriptsRoot = "$monoroot/external/buildscripts";
my $clean = 1;
GetOptions(
"clean=i"=>\$clean,
) or die ("illegal cmdline options");
system("perl", "$buildScriptsRoot/build.pl", "--build=1", "--clean=$clean", "--artifact=1", "--arch32=1", "--iphonecross=1", "--forcedefaultbuilddeps=1") eq 0 or die ("Failed building iphone cross compiler\n");
use Cwd;
use Cwd 'abs_path';
use Getopt::Long;
use File::Basename;
use File::Path;

my $monoroot = File::Spec->rel2abs(dirname(__FILE__) . "/../..");
my $monoroot = abs_path($monoroot);
my $buildScriptsRoot = "$monoroot/external/buildscripts";

my $clean = 1;

GetOptions(
"clean=i"=>\$clean,
) or die ("illegal cmdline options");


system("perl", "$buildScriptsRoot/build.pl", "--build=1", "--clean=$clean", "--artifact=1", "--arch32=1", "--iphonecross=1", "--forcedefaultbuilddeps=1") eq 0 or die ("Failed building iphone cross compiler\n");
64 changes: 32 additions & 32 deletions external/buildscripts/build_runtime_android.pl
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
use Cwd;
use Cwd 'abs_path';
use Getopt::Long;
use File::Basename;
use File::Path;
my $monoroot = File::Spec->rel2abs(dirname(__FILE__) . "/../..");
my $monoroot = abs_path($monoroot);
my $buildScriptsRoot = "$monoroot/external/buildscripts";
my $androidArch = "";
my $clean = 1;
my $windowsSubsystemForLinux = 0;
GetOptions(
"androidarch=s"=>\$androidArch,
"clean=i"=>\$clean,
"windowssubsystemforlinux=i"=>\$windowsSubsystemForLinux,
) or die ("illegal cmdline options");
# By default, build runtime for all the variants we need. But allow something to specify an individual variation to build
if ($androidArch eq "")
{
system("perl", "$buildScriptsRoot/build.pl", "--build=1", "--clean=1", "--artifact=1", "--arch32=1", "--androidarch=armv5", "--forcedefaultbuilddeps=1", "--windowssubsystemforlinux=$windowsSubsystemForLinux") eq 0 or die ("Failed building mono for armv5\n");
system("perl", "$buildScriptsRoot/build.pl", "--build=1", "--clean=1", "--artifact=1", "--arch32=1", "--androidarch=armv6_vfp", "--forcedefaultbuilddeps=1", "--windowssubsystemforlinux=$windowsSubsystemForLinux") eq 0 or die ("Failed building mono for armv6_vfp\n");
system("perl", "$buildScriptsRoot/build.pl", "--build=1", "--clean=1", "--artifact=1", "--arch32=1", "--androidarch=armv7a", "--forcedefaultbuilddeps=1", "--windowssubsystemforlinux=$windowsSubsystemForLinux") eq 0 or die ("Failed building mono for armv7a\n");
system("perl", "$buildScriptsRoot/build.pl", "--build=1", "--clean=1", "--artifact=1", "--arch32=1", "--androidarch=x86", "--forcedefaultbuilddeps=1", "--windowssubsystemforlinux=$windowsSubsystemForLinux") eq 0 or die ("Failed building mono for x86\n");
}
else
{
system("perl", "$buildScriptsRoot/build.pl", "--build=1", "--clean=$clean", "--artifact=1", "--arch32=1", "--androidarch=$androidArch", "--forcedefaultbuilddeps=1", "--windowssubsystemforlinux=$windowsSubsystemForLinux") eq 0 or die ("Failed building mono for $androidArch\n");
}
use Cwd;
use Cwd 'abs_path';
use Getopt::Long;
use File::Basename;
use File::Path;

my $monoroot = File::Spec->rel2abs(dirname(__FILE__) . "/../..");
my $monoroot = abs_path($monoroot);
my $buildScriptsRoot = "$monoroot/external/buildscripts";

my $androidArch = "";
my $clean = 1;
my $windowsSubsystemForLinux = 0;

GetOptions(
"androidarch=s"=>\$androidArch,
"clean=i"=>\$clean,
"windowssubsystemforlinux=i"=>\$windowsSubsystemForLinux,
) or die ("illegal cmdline options");

# By default, build runtime for all the variants we need. But allow something to specify an individual variation to build
if ($androidArch eq "")
{
system("perl", "$buildScriptsRoot/build.pl", "--build=1", "--clean=1", "--artifact=1", "--arch32=1", "--androidarch=armv5", "--forcedefaultbuilddeps=1", "--windowssubsystemforlinux=$windowsSubsystemForLinux") eq 0 or die ("Failed building mono for armv5\n");
system("perl", "$buildScriptsRoot/build.pl", "--build=1", "--clean=1", "--artifact=1", "--arch32=1", "--androidarch=armv6_vfp", "--forcedefaultbuilddeps=1", "--windowssubsystemforlinux=$windowsSubsystemForLinux") eq 0 or die ("Failed building mono for armv6_vfp\n");
system("perl", "$buildScriptsRoot/build.pl", "--build=1", "--clean=1", "--artifact=1", "--arch32=1", "--androidarch=armv7a", "--forcedefaultbuilddeps=1", "--windowssubsystemforlinux=$windowsSubsystemForLinux") eq 0 or die ("Failed building mono for armv7a\n");
system("perl", "$buildScriptsRoot/build.pl", "--build=1", "--clean=1", "--artifact=1", "--arch32=1", "--androidarch=x86", "--forcedefaultbuilddeps=1", "--windowssubsystemforlinux=$windowsSubsystemForLinux") eq 0 or die ("Failed building mono for x86\n");
}
else
{
system("perl", "$buildScriptsRoot/build.pl", "--build=1", "--clean=$clean", "--artifact=1", "--arch32=1", "--androidarch=$androidArch", "--forcedefaultbuilddeps=1", "--windowssubsystemforlinux=$windowsSubsystemForLinux") eq 0 or die ("Failed building mono for $androidArch\n");
}
Loading