@srcdir@/extras/org_tree_html_options.pl \
@srcdir@/extras/org_tree_proximity.pl \
@srcdir@/extras/autogen.sh \
+ @srcdir@/extras/cache-generator.sh \
@srcdir@/support-scripts/offline-blocked-list.pl
# Decide which entities to build
sed -i 's|BINDIR|@bindir@|g' '$(DESTDIR)@bindir@/autogen.sh'
sed -i 's|LOCALSTATEDIR|@localstatedir@|g' '$(DESTDIR)@bindir@/autogen.sh'
sed -i 's|SYSCONFDIR|@sysconfdir@|g' '$(DESTDIR)@bindir@/autogen.sh'
+ sed -i 's|BINDIR|@bindir@|g' '$(DESTDIR)@bindir@/cache-generator.sh'
+ sed -i 's|LOCALSTATEDIR|@localstatedir@|g' '$(DESTDIR)@bindir@/cache-generator.sh'
+ sed -i 's|SYSCONFDIR|@sysconfdir@|g' '$(DESTDIR)@bindir@/cache-generator.sh'
sed -i 's|BINDIR|@bindir@|g' '$(DESTDIR)@bindir@/reshelving_complete.srfsh'
sed -i 's|BINDIR|@bindir@|g' '$(DESTDIR)@bindir@/clear_expired_circ_history.srfsh'
sed -i 's|BINDIR|@bindir@|g' '$(DESTDIR)@bindir@/update_hard_due_dates.srfsh'
--- /dev/null
+#!/bin/sh
+
+PID=$$
+
+BINDIR/autogen.sh $@ |tee /tmp/.eg-cache-generator.$PID
+
+(
+ date +%Y%m%d
+ for i in `grep -- '->' /tmp/.eg-cache-generator.$PID| awk '{print $2}'`; do
+ ls $i >/dev/null 2>/dev/null && md5sum $i
+ done
+) | md5sum | cut -f1 -d' ' | colrm 1 26 > SYSCONFDIR/eg_cache_hash
+
+echo
+echo -n "Current Evergreen cache key: "
+cat SYSCONFDIR/eg_cache_hash
+
+rm /tmp/.eg-cache-generator.$PID
+