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
Container Registry
Model registry
Operate
Environments
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
pregmodfan
fc-pregmod
Commits
8cbd7a5c
Commit
8cbd7a5c
authored
5 years ago
by
Blank
Committed by
lowercasedonkey
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
compile.sh_tweaking
parent
ae649046
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4641
MultiBrand (ready for review)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compile.sh
+16
-37
16 additions, 37 deletions
compile.sh
with
16 additions
and
37 deletions
compile.sh
+
16
−
37
View file @
8cbd7a5c
...
...
@@ -64,47 +64,27 @@ function compile {
if
[[
"
$usehash
"
]]
;
then
HASH
=
"
$(
git rev-list
-n
1
--abbrev-commit
HEAD
)
"
$TWEEGO_EXE
-o
"bin/FC_pregmod_
${
HASH
}
_tmp.html"
src/
--head
devTools/head.html
||
build_failed
=
"true"
if
[
"
$build_failed
"
=
"true"
]
then
echoError
"Build failed."
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_
${
HASH
}
_tmp.html"
\
&&
mv
"bin/FC_pregmod_
${
HASH
}
_tmp.html"
"bin/FC_pregmod_
${
HASH
}
.html"
ln
-s
../resources bin/ 2> /dev/null
echoMessage
"Saved to bin/FC_pregmod_
$HASH
.html."
file
=
"bin/FC_pregmod_
${
HASH
}
.html"
else
# Find and insert current commit
COMMIT
=
$(
git rev-parse
--short
HEAD
)
COMMIT
=
$(
git rev-parse
--short
HEAD
)
# Find and insert current commit
sed
-Ei
"s/build .releaseID/
\0
commit
$COMMIT
/"
src/gui/mainMenu/AlphaDisclaimer.tw
file
=
"bin/FC_pregmod.html"
fi
$TWEEGO_EXE
-o
"bin/FC_pregmod_tmp.html"
src/
--head
devTools/head.html
||
build_failed
=
"true"
# Revert AlphaDisclaimer for next compilation
git checkout
--
src/gui/mainMenu/AlphaDisclaimer.tw
if
[
"
$build_failed
"
=
"true"
]
then
echoError
"Build failed."
exit
1
fi
$TWEEGO_EXE
-o
$file
src/
--head
devTools/head.html
||
build_failed
=
"true"
#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_tmp.html
\
&&
mv
bin/FC_pregmod_tmp.html bin/FC_pregmod.html
if
[
"
$build_failed
"
=
"true"
]
then
echoError
"Build failed."
exit
1
fi
ln
-s
../resources bin/ 2> /dev/null
#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'
$file
echoMessage
"Saved to bin/FC_pregmod.html."
fi
ln
-s
../resources bin/ 2> /dev/null
if
[[
!
"
$usehash
"
]]
;
then
git checkout
--
src/gui/mainMenu/AlphaDisclaimer.tw
;
fi
# Revert AlphaDisclaimer for next compilation
echoMessage
"Saved to
$file
."
}
if
[[
"
$1
"
==
""
]]
;
then
...
...
@@ -145,7 +125,6 @@ fi
# Run sanity check.
[
-n
"
$java
"
]
&&
./sanityCheck.sh java
[
-n
"
$python
"
]
&&
./sanityCheck.sh
#compile
...
...
@@ -154,4 +133,4 @@ if [[ "$dry" ]]; then
else
compile
echoMessage
"Compilation finished."
fi
fi
\ No newline at end of file
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