aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/compile-db
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/compile-db')
-rwxr-xr-xsrc/bin/compile-db6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/compile-db b/src/bin/compile-db
index 22b63b4..027609f 100755
--- a/src/bin/compile-db
+++ b/src/bin/compile-db
@@ -7,7 +7,7 @@ multisubstitute {
define LIVEDIR ${2}
}
-backtick -ED" " OLDDB { realpath ${CONFIGDIR}/compiled }
+backtick -ED" " OLDDB { realpath -e ${CONFIGDIR}/compiled }
backtick -E DATE { date +%s }
elglob SOURCES ${CONFIGDIR}/src/*
@@ -21,7 +21,7 @@ if {
exit 1
}
-if { ln -sf compiled-${DATE} ${CONFIGDIR}/compiled/compiled }
-if { mv -f ${CONFIGDIR}/compiled/compiled ${CONFIGDIR}/ }
+if { ln -sf compiled-${DATE} ${CONFIGDIR}/../compiled }
+if { mv -f ${CONFIGDIR}/../compiled ${CONFIGDIR}/ }
rm -Rf ${OLDDB}