FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaScriptServices/build.sh at angular2-lazy-loading-example · vblain/JavaScriptServices · GitHub
vblain
/
JavaScriptServices
Public
forked from
aspnet/JavaScriptServices
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaScriptServices
/
build.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
46 lines (35 loc) · 1.12 KB
Breadcrumbs
JavaScriptServices
/
build.sh
Copy path
File metadata and controls
executable file
·
46 lines (35 loc) · 1.12 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!
/usr/bin/env bash
repoFolder=
"
$(
cd
"
$(
dirname
"
${BASH_SOURCE[0]}
"
)
"
&&
pwd
)
"
cd
$repoFolder
koreBuildZip=
"
https://github.com/aspnet/KoreBuild/archive/dev.zip
"
if
[
!
-z
$KOREBUILD_ZIP
]
;
then
koreBuildZip=
$KOREBUILD_ZIP
fi
buildFolder=
"
.build
"
buildFile=
"
$buildFolder
/KoreBuild.sh
"
if
test
!
-d
$buildFolder
;
then
echo
"
Downloading KoreBuild from
$koreBuildZip
"
tempFolder=
"
/tmp/KoreBuild-
$(
uuidgen
)
"
mkdir
$tempFolder
localZipFile=
"
$tempFolder
/korebuild.zip
"
retries=6
until
(wget -O
$localZipFile
$koreBuildZip
2>
/dev/null
||
curl -o
$localZipFile
--location
$koreBuildZip
2>
/dev/null)
do
echo
"
Failed to download '
$koreBuildZip
'
"
if
[
"
$retries
"
-le
0 ]
;
then
exit
1
fi
retries=
$((
retries
-
1
))
echo
"
Waiting 10 seconds before retrying. Retries left:
$retries
"
sleep 10s
done
unzip -q -d
$tempFolder
$localZipFile
mkdir
$buildFolder
cp -r
$tempFolder
/
**
/build/
**
$buildFolder
chmod +x
$buildFile
#
Cleanup
if
test
!
-d
$tempFolder
;
then
rm -rf
$tempFolder
fi
fi
$buildFile
-r
$repoFolder
"
$@
"
Back
|
FazBrowse Home
|
New Git URL