Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
macaronideath
fc-pregmod
Commits
2cad1842
Commit
2cad1842
authored
7 years ago
by
Emuis
Browse files
Options
Downloads
Patches
Plain Diff
change the exit code if tweego fails so other scripts can know the compile failed
parent
5d752e76
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compile
+11
-6
11 additions, 6 deletions
compile
with
11 additions
and
6 deletions
compile
+
11
−
6
View file @
2cad1842
...
...
@@ -12,23 +12,28 @@ ARCH="$(uname -m)"
if
[
"
$ARCH
"
=
"x86_64"
]
then
echo
"x64 arch"
./devTools/tweeGo/tweego_nix64
-o
bin/FC_pregmod.html src/
./devTools/tweeGo/tweego_nix64
-o
bin/FC_pregmod.html src/
||
build_failed
=
"true"
elif
echo
"
$ARCH
"
|
grep
-Ee
'86$'
>
/dev/null
then
echo
"x86 arch"
./devTools/tweeGo/tweego_nix86
-o
bin/FC_pregmod.html src/
./devTools/tweeGo/tweego_nix86
-o
bin/FC_pregmod.html src/
||
build_failed
=
"true"
elif
echo
"
$ARCH
"
|
grep
-Ee
'^arm'
>
/dev/null
then
echo
"arm arch"
# tweego doesn't provide arm binaries so you have to build it yourself
export
TWEEGO_PATH
=
devTools/tweeGo/storyFormats
tweego
-o
bin/FC_pregmod.html src/
tweego
-o
bin/FC_pregmod.html src/
||
build_failed
=
"true"
else
exit
2
fi
#Make the output prettier, replacing \t with a tab and \n with a newline
sed
-i
-e
'/^.*<div id="store-area".*$/s/\\t/\t/g'
-e
'/^.*<div id="store-area".*$/s/\\n/\n/g'
bin/FC_pregmod.html
# Revert AlphaDisclaimer for next compilation
git checkout
--
src/gui/mainMenu/AlphaDisclaimer.tw
if
[
"
$build_failed
"
=
"true"
]
then
exit
1
fi
#Make the output prettier, replacing \t with a tab and \n with a newline
sed
-i
-e
'/^.*<div id="store-area".*$/s/\\t/\t/g'
-e
'/^.*<div id="store-area".*$/s/\\n/\n/g'
bin/FC_pregmod.html
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment