mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
minimal-bootstrap.mes: reformat sources.nix for better diffs
This commit is contained in:
parent
3dcd819caa
commit
e88693d8e4
2 changed files with 1061 additions and 24 deletions
|
@ -19,10 +19,9 @@ COMPILERS="mescc gcc"
|
|||
|
||||
|
||||
format() {
|
||||
echo -n "[ "
|
||||
# Terrible hack to convert a newline-delimited string to space-delimited
|
||||
echo $* | xargs printf '"%s" '
|
||||
echo -n "]"
|
||||
echo "["
|
||||
echo $* | xargs printf ' "%s"\n'
|
||||
echo " ]"
|
||||
}
|
||||
|
||||
gen_sources() {
|
||||
|
@ -38,12 +37,12 @@ gen_sources() {
|
|||
cat <<EOF
|
||||
$mes_cpu.$mes_kernel.$compiler = {
|
||||
libc_mini_SOURCES = $(format $libc_mini_SOURCES);
|
||||
libmescc_SOURCES = $(format $libmescc_SOURCES);
|
||||
libtcc1_SOURCES = $(format $libtcc1_SOURCES);
|
||||
libc_SOURCES = $(format $libc_SOURCES);
|
||||
libc_tcc_SOURCES = $(format $libc_tcc_SOURCES);
|
||||
libc_gnu_SOURCES = $(format $libc_gnu_SOURCES);
|
||||
mes_SOURCES = $(format $mes_SOURCES);
|
||||
libmescc_SOURCES = $(format $libmescc_SOURCES);
|
||||
libtcc1_SOURCES = $(format $libtcc1_SOURCES);
|
||||
libc_SOURCES = $(format $libc_SOURCES);
|
||||
libc_tcc_SOURCES = $(format $libc_tcc_SOURCES);
|
||||
libc_gnu_SOURCES = $(format $libc_gnu_SOURCES);
|
||||
mes_SOURCES = $(format $mes_SOURCES);
|
||||
};
|
||||
EOF
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue