mirror of
https://github.com/tailix/kernel.git
synced 2024-11-13 11:14:07 -05:00
Improve configurator
This commit is contained in:
parent
eec868aaf9
commit
8daba7581f
3 changed files with 20 additions and 1 deletions
20
configure
vendored
20
configure
vendored
|
@ -1,3 +1,21 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
cp config.mk.in config.mk
|
||||
ENV="$1"
|
||||
|
||||
if [ -z "$ENV" ]; then
|
||||
ENV='build'
|
||||
fi
|
||||
|
||||
CONFIG="env/$ENV.mk"
|
||||
|
||||
if [ ! -f "$CONFIG" ]; then
|
||||
echo >&2 "ERROR: file "$CONFIG" does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -f 'config.mk' ]; then
|
||||
echo >&2 "ERROR: file 'config.mk' already exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cp "$CONFIG" 'config.mk'
|
||||
|
|
0
config.mk.in → env/build.mk
vendored
0
config.mk.in → env/build.mk
vendored
1
env/test.mk
vendored
Normal file
1
env/test.mk
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export CCPREFIX =
|
Loading…
Reference in a new issue