From af5234ec0016bacf395b6d32d005d3d3e91157e2 Mon Sep 17 00:00:00 2001 From: PS
Date: Sat, 28 Feb 2026 17:44:25 +0100 Subject: Actually fix compile-db --- src/bin/compile-db | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/bin') diff --git a/src/bin/compile-db b/src/bin/compile-db index 027609f..acd3a07 100755 --- a/src/bin/compile-db +++ b/src/bin/compile-db @@ -7,7 +7,7 @@ multisubstitute { define LIVEDIR ${2} } -backtick -ED" " OLDDB { realpath -e ${CONFIGDIR}/compiled } +backtick -ED" " OLDDB { realpath ${CONFIGDIR}/compiled } backtick -E DATE { date +%s } elglob SOURCES ${CONFIGDIR}/src/* @@ -24,4 +24,5 @@ if { if { ln -sf compiled-${DATE} ${CONFIGDIR}/../compiled } if { mv -f ${CONFIGDIR}/../compiled ${CONFIGDIR}/ } +if -x0 { eltest ${CONFIGDIR}/compiled != ${CONFIGDIR}/compiled } rm -Rf ${OLDDB} -- cgit v1.2.3