]> git.sesse.net Git - plocate/commitdiff
Install CACHEDIR.tag in /var/lib/plocate.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Wed, 10 Feb 2021 20:39:37 +0000 (21:39 +0100)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Wed, 10 Feb 2021 20:39:37 +0000 (21:39 +0100)
This helps certain tools understand that everything in the directory
is autogenerated. Suggested by Marco d'Itri.

mkdir.sh

index 99d7634848368b50e836c0b9dddcaf89b98556c2..36ee226ec069df103002768d20bf251d0bb09d49 100755 (executable)
--- a/mkdir.sh
+++ b/mkdir.sh
@@ -1,2 +1,9 @@
 #! /bin/sh
 mkdir -p ${DESTDIR}/"$1"
+
+cat <<EOF >${DESTDIR}/"$1"/CACHEDIR.TAG
+Signature: 8a477f597d28d172789f06886806bc55
+# This file is a cache directory tag created by plocate.
+# For information about cache directory tags, see:
+#      https://bford.info/cachedir/
+EOF