summaryrefslogtreecommitdiff
path: root/journal.cgi
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2009-10-11 11:08:02 +0200
committerMatthias Benkard <code@mail.matthias.benkard.de>2009-10-11 11:08:02 +0200
commitd5dc28513708e867aa744f77315a11542c609abf (patch)
treed0ebd74a130f824efd5e5fb20bc5455f60589fb8 /journal.cgi
parentb71aa1cc3b05c8c4b1256c54f8ccb6bef4066694 (diff)
Simplify the CGI helpers a bit.
Ignore-this: 68529a80496ebe3fcfc33685e26f41d0 darcs-hash:3313a8ad494a9111539edd0009e9d4c8e7025536
Diffstat (limited to 'journal.cgi')
-rwxr-xr-xjournal.cgi9
1 files changed, 2 insertions, 7 deletions
diff --git a/journal.cgi b/journal.cgi
index c34c2e7..a719526 100755
--- a/journal.cgi
+++ b/journal.cgi
@@ -14,13 +14,8 @@ mtime_of() {
FASL_FILE="$LISPINIT_DIR/journal-full.fas"
-lisp_mtime=0
-for x in $DIR/*.lisp; do
- mtime=`mtime_of "$x"`
- if [ $mtime -gt $lisp_mtime ]; then
- lisp_mtime=$mtime
- fi
-done
+most_recently_changed_lisp_file=`ls -rt $DIR/*.lisp | tail -n1`
+lisp_mtime=`mtime_of $most_recently_changed_lisp_file`
if ! [ -f "$FASL_FILE" -a \( `mtime_of "$FASL_FILE"` -gt $lisp_mtime \) ]; then
env LC_ALL=de_DE.UTF-8 clisp -M "$LISPINIT_DIR/lispinit.mem.gz" "$DIR/compile.lisp" &&\