Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
anonymine
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oskar Skog
anonymine
Commits
1be5a38c
Commit
1be5a38c
authored
Oct 09, 2018
by
Oskar Skog
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkenginecfg: fetch $(python) from the Makefile
parent
e4d82fc0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
Makefile.static
Makefile.static
+1
-1
mkenginecfg
mkenginecfg
+11
-5
No files found.
Makefile.static
View file @
1be5a38c
...
...
@@ -115,7 +115,7 @@ $(MAIN_STAGE) : $(MAIN_SRC) $(builddir)Makefile
$(ENGINECFG_STAGE)
:
$(srcdir)mkenginecfg $(builddir)Makefile.vars
@
$(info)
'Making enginecfg: mostly counting processors'
@
"
$(srcdir)
mkenginecfg"
"
$(srcdir)
"
"
$(builddir)
"
"
$(HISCORE_FILE)
"
@
"
$(srcdir)
mkenginecfg"
"
$(
python)
"
"
$(
srcdir)
"
"
$(builddir)
"
"
$(HISCORE_FILE)
"
$(builddir)module-symlinks
:
$(builddir)Makefile.vars $(srcdir)mk-symlinks
...
...
mkenginecfg
View file @
1be5a38c
#!/bin/sh
# ./mkenginecfg srcdir builddir hiscorefile
if
[
$#
-ne
4
]
;
then
cat
>
&2
<<
__EOF__
# ./mkenginecfg python_interpreter srcdir builddir hiscorefile
# This shell script is a wrapper around a Python script that will be spit
# out.
__EOF__
exit
1
fi
srcdir
=
$1
builddir
=
$2
hiscorefile
=
$3
python
=
$1
srcdir
=
$2
builddir
=
$3
hiscorefile
=
$4
userfile
=
"
${
builddir
}
enginecfg.user"
fallbackfile
=
"
${
srcdir
}
enginecfg.fallback"
...
...
@@ -84,6 +90,6 @@ done
oldpwd
=
`
pwd
`
cd
"
$srcdir
"
python
"
$pyfile
"
"
$ncpus
"
"
$hiscorefile
"
>
"
$outfile
"
\
$
python
"
$pyfile
"
"
$ncpus
"
"
$hiscorefile
"
>
"
$outfile
"
\
||
cp
"
$fallbackfile
"
"
$outfile
"
cd
"
$oldpwd
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment