Skip to content

Commit 7eff5e1

Browse files
committed
add libctru
1 parent eaf9ab0 commit 7eff5e1

1 file changed

Lines changed: 29 additions & 23 deletions

File tree

perl/devkitARMupdate.pl

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
#!/usr/bin/perl
22
#-----------------------------------------------------------------------------
33
#
4-
# Copyright (C) 2011
5-
# Michael Theall (mtheall)
6-
# Dave Murphy (WinterMute)
4+
# Copyright (C) 2011
5+
# Michael Theall (mtheall)
6+
# Dave Murphy (WinterMute)
77
#
8-
# This software is provided 'as-is', without any express or implied
9-
# warranty. In no event will the authors be held liable for any
10-
# damages arising from the use of this software.
8+
# This software is provided 'as-is', without any express or implied
9+
# warranty. In no event will the authors be held liable for any
10+
# damages arising from the use of this software.
1111
#
12-
# Permission is granted to anyone to use this software for any
13-
# purpose, including commercial applications, and to alter it and
14-
# redistribute it freely, subject to the following restrictions:
12+
# Permission is granted to anyone to use this software for any
13+
# purpose, including commercial applications, and to alter it and
14+
# redistribute it freely, subject to the following restrictions:
1515
#
16-
# 1. The origin of this software must not be misrepresented; you
17-
# must not claim that you wrote the original software. If you use
18-
# this software in a product, an acknowledgment in the product
19-
# documentation would be appreciated but is not required.
20-
# 2. Altered source versions must be plainly marked as such, and
21-
# must not be misrepresented as being the original software.
22-
# 3. This notice may not be removed or altered from any source
23-
# distribution.
16+
# 1. The origin of this software must not be misrepresented; you
17+
# must not claim that you wrote the original software. If you use
18+
# this software in a product, an acknowledgment in the product
19+
# documentation would be appreciated but is not required.
20+
# 2. Altered source versions must be plainly marked as such, and
21+
# must not be misrepresented as being the original software.
22+
# 3. This notice may not be removed or altered from any source
23+
# distribution.
2424
#
2525
#-----------------------------------------------------------------------------
2626
use strict;
@@ -59,13 +59,13 @@
5959
# Check OS information
6060
if($os eq "Linux" and ($arch eq "i686" or $arch eq "x86_64"))
6161
{
62-
$downloader = "wget -q";
63-
$archname = $arch . "-linux";
62+
$downloader = "wget -q";
63+
$archname = $arch . "-linux";
6464
}
6565
elsif($os eq "Darwin")
6666
{
67-
$downloader = "curl -L -O -s";
68-
$archname = "osx";
67+
$downloader = "curl -L -O -s";
68+
$archname = "osx";
6969
}
7070
else
7171
{
@@ -79,6 +79,10 @@
7979
mkdir("$dir") or die $!;
8080
}
8181

82+
if(!(-d "$dir/libctru"))
83+
{
84+
mkdir("$dir/libctru") or die $!;
85+
}
8286
if(!(-d "$dir/libnds"))
8387
{
8488
mkdir("$dir/libnds") or die $!;
@@ -111,7 +115,7 @@
111115
# Grab update file
112116
if(-e "devkitProUpdate.ini")
113117
{
114-
unlink("devkitProUpdate.ini") or die $!;
118+
unlink("devkitProUpdate.ini") or die $!;
115119
}
116120
printf("Downloading update file...");
117121
system($downloader . " http://devkitpro.sourceforge.net/devkitProUpdate.ini") and die "Failed to download!";
@@ -134,6 +138,7 @@
134138
'ndsexamples' => 0,
135139
'defaultarm7' => 0,
136140
'filesystem' => 0,
141+
'libctru' => 0,
137142
);
138143
my %newVersions = %versions;
139144

@@ -198,7 +203,7 @@
198203
printf("%s is up-to-date\n", $key);
199204
}
200205
}
201-
206+
202207
# Download files
203208
foreach my $key (keys %updates)
204209
{
@@ -231,6 +236,7 @@
231236
'ndsexamples' => 'examples/nds',
232237
'defaultarm7' => 'libnds',
233238
'filesystem' => 'libnds',
239+
'libctru' => 'libctru',
234240
);
235241

236242
foreach my $key (keys %updates)

0 commit comments

Comments
 (0)