Allow cross-site use of the status script.

Also a random header change, and adjust cache frequency.
This commit is contained in:
Eli Barzilay 2012-01-08 21:54:17 -05:00
parent 8d9614c41c
commit 62213b9f28
2 changed files with 3 additions and 3 deletions

View File

@ -1056,7 +1056,7 @@ MAIN_BUILD() {
fi
if is_yes make_bins; then
header -s "Creating archive"
header -s "Creating source archive"
_cd "$maindir"
_rm "$repotgz"
_cd "$maindir/$cleandir"

View File

@ -2,12 +2,12 @@
cache="/tmp/racket-build-status-cache"
cachelock="$cache-lock"
printf 'Content-type: text/plain\r\n\r\n'
printf 'Content-type: text/plain\r\nAccess-Control-Allow-Origin: *\r\n\r\n'
# cache status reports (avoids excessive work during builds)
# use a lockfile as a cheap hack to time cache refreshing
if ! lockfile -r 0 -l 30 -s 0 "$cachelock" >& /dev/null \
if ! lockfile -r 0 -l 25 -s 0 "$cachelock" >& /dev/null \
&& [[ -e "$cache" ]]; then
cat "$cache"; exit
fi