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
af053223
Commit
af053223
authored
4 years ago
by
Pregmodder
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'upstream/pregmod-master' into pregmod-dev
parents
68edeb1e
222a7a4e
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
devTools/concatFiles.bat
+18
-4
18 additions, 4 deletions
devTools/concatFiles.bat
src/markets/theMarket/buySlaves.js
+1
-0
1 addition, 0 deletions
src/markets/theMarket/buySlaves.js
with
19 additions
and
4 deletions
devTools/concatFiles.bat
+
18
−
4
View file @
af053223
@echo
off
:: Concatenates files from dir %1 specified with wildcard %2 and outputs result to %3
:: temporary codepage change to avoid mojibake
FOR
/f
"tokens=2 delims=:."
%%x
IN
(
'CHCP'
)
DO
SET
_CP
=
%%x
CHCP
65001
>
NUL
:: 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%
(
FOR
/F
"usebackq delims="
%%F
IN
(
`type "
%_LISTFILE%
"`
)
DO
(
:: Collect sorted list of files
ECHO
"Ignore the first line to skip the BOM"
>
%_LISTFILE%
(
FOR
/R
"
%
~1"
%%F
IN
(
%
2
)
DO
echo
"
%%F
"
)
|
sort
>>
%_LISTFILE%
:: If we have powershell available, strip the absolute path information
:: If not, fail silently (which is fine, but will leak path information into the built file)
powershell
-command
""
2
>
NUL
IF
%ERRORLEVEL%
EQU
0
powershell
-command
"(get-content -path
%_LISTFILE%
-encoding utf8) -replace [regex]::escape('
%CD%
'),'' -replace '\"
',''
^|
set-content -encoding utf8 -path
%_LISTFILE%
"
:: Append the files
(FOR /F "skip=1 usebackq delims="
%%F
IN (`type "
%_LISTFILE%
"`) DO (
echo /*
%%F
*/ >>
%
3
copy
/b
%
3
+
%%F
%
3
1
>
NUL
copy /b
%
3+
"
%CD%
%%
F
"
%
3 1>NUL
)
)
DEL
%_LISTFILE%
CHCP
%_CP%
> NUL
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/markets/theMarket/buySlaves.js
+
1
−
0
View file @
af053223
...
...
@@ -180,6 +180,7 @@ App.UI.buySlaves = function() {
App
.
UI
.
DOM
.
link
(
`x10`
,
()
=>
{
V
.
market
=
new
App
.
Markets
.
GlobalVariable
();
V
.
market
.
slaveMarket
=
store
.
marketType
;
V
.
market
.
introType
=
"
bulk
"
;
V
.
market
.
numSlaves
=
10
;
...
...
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