чување a196fd9194dd81f9a16f1b927c15866ebedc76fe родитељ 1cf23f4eb4165b9d3a1d029e378331bcbe4358df Аутор: Страхиња Радић <contact@strahinja.org> Датум: Tue, 14 Mar 2023 21:20:22 +0100 Improve config.h handling as per https://groups.google.com/g/redo-list/c/q4uFZ-cPUtQ Signed-off-by: Страхиња Радић <contact@strahinja.org> Diffstat:
| M | _config.h.do | | | 14 | ++++++++------ |
| M | clean.do | | | 2 | +- |
измењених датотека: 2, додавања: 9(+), брисања: 7(-)
diff --git a/_config.h.do b/_config.h.do @@ -1,7 +1,9 @@ -hfile=${1#_} -if [ ! -r $hfile ]; then - cat config.def.h >$hfile +if [ -r config.h ]; then + redo-ifchange config.h + cp config.h $3 +else + redo-ifcreate config.h + redo-ifchange config.def.h + cp config.def.h $3 + cp config.def.h config.h fi -cat $hfile >$3 -redo-always -redo-stamp <$3 diff --git a/clean.do b/clean.do @@ -1 +1 @@ -rm -f *~ *.o sled sled.1.gz sled.1 version.h version date +rm -f *~ *.o sled sled.1.gz sled.1 version.h version date _config.h