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
cdeef302
Commit
cdeef302
authored
4 years ago
by
svornost
Browse files
Options
Downloads
Patches
Plain Diff
Concatenate javascript files in binary mode so Windows doesn't try to fuck with the codepage
parent
8f580207
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compile.bat
+1
-1
1 addition, 1 deletion
compile.bat
devTools/concatFiles.bat
+4
-3
4 additions, 3 deletions
devTools/concatFiles.bat
with
5 additions
and
4 deletions
compile.bat
+
1
−
1
View file @
cdeef302
...
...
@@ -4,7 +4,7 @@
:: Set working directory
pushd
%~dp0
if
not
exist
"bin\resources"
mkdir
bin
\resources
CALL
devTools
/concatFiles
.bat
js
/
"*.js"
bin
/
fc
.js
CALL
devTools
/concatFiles
.bat
js
\
"*.js"
bin
\
fc.js
:: Run the appropriate compiler for the user's CPU architecture.
if
%PROCESSOR_ARCHITECTURE%
==
AMD64
(
CALL
"
%~dp0
devTools\tweeGo\tweego_win64.exe"
-o
"
%~dp0
bin/FC_pregmod.html"
--module
=
bin
/fc
.js
--head
devTools
/head
.html
"
%~dp0
src"
...
...
This diff is collapsed.
Click to expand it.
devTools/concatFiles.bat
+
4
−
3
View file @
cdeef302
...
...
@@ -2,12 +2,13 @@
:: Concatenates files from dir %1 specified with wildcard %2 and outputs result to %3
:: TODO Proper temp file instead of bin\list.txt
IF
EXIST
%
3
DEL
%
3
SET
_LISTFILE
=
"bin\list.txt"
>
%_LISTFILE%
(
FOR
/R
"
%
~1"
%%F
IN
(
%
2
)
DO
echo
"
%%F
"
)
sort
/O
%_LISTFILE%
%_LISTFILE%
>
%
3
(
FOR
/F
"usebackq delims="
%%F
IN
(
`type "
%_LISTFILE%
"`
)
DO
(
echo
/
*
%%F
*
/
type
%%F
(
FOR
/F
"usebackq delims="
%%F
IN
(
`type "
%_LISTFILE%
"`
)
DO
(
echo
/
*
%%F
*
/
>>
%
3
copy
/b
%
3
+
%%F
%
3
1
>
NUL
)
)
...
...
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