Write a Tup config when entering nix-shell
parent
f0762e152a
commit
7f1cdabda9
|
@ -125,8 +125,12 @@ let
|
|||
export PROMPT_DIRTRIM=2
|
||||
export PS1="\[\033[1;30m\]Genode-dev [\[\033[1;37m\]\w\[\033[1;30m\]] $\[\033[0m\] "
|
||||
export PS2="\[\033[1;30m\]>\[\033[0m\] "
|
||||
echo $tupConfig | tr ' CONFIG_' '\nCONFIG_' > tup.config
|
||||
echo "A new tup.config file has been generated."
|
||||
if [ -e "configs/.gitignore" ]; then
|
||||
local CFG_PATH=configs/${targetPlatform.config}.config
|
||||
echo $tupConfig | tr ' CONFIG_' '\nCONFIG_' > $CFG_PATH
|
||||
echo "Tup configuration placed at $CFG_PATH, to activate run the following command:"
|
||||
echo " tup variant $CFG_PATH"
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue