1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00
kernel/configure
2017-11-04 07:01:56 +00:00

21 lines
305 B
Bash
Executable file

#!/bin/sh -e
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'