Changeset 1325 for toilet


Ignore:
Timestamp:
Nov 10, 2006, 3:19:13 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Do not cache ac_build_date.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • toilet/trunk/configure.ac

    r1323 r1325  
    5757  AC_MSG_ERROR([you need libcucul version 0.99.beta9 or later])])
    5858
    59 AC_CACHE_CHECK([for release date],
    60   [ac_build_date],
    61   [stamp="$(sed -ne 's/# \$Id: .*\(....-..-..\).*/\1/p;q' configure.ac)"
    62    if date +"%e %B %Y" -d "$stamp" >/dev/null 2>&1; then
    63      ac_build_date="$(LANG=C date +"%e %B %Y" -d "$stamp" | sed 's/^ //')"
    64    else
    65      ac_build_date="${stamp##*-} ${${stamp%-*}#*-} ${stamp%%-*}"
    66    fi])
     59AC_MSG_CHECKING([for release date])
     60stamp="$(sed -ne 's/# \$Id: .*\(....-..-..\).*/\1/p;q' configure.ac)"
     61 if date +"%e %B %Y" -d "$stamp" >/dev/null 2>&1; then
     62   ac_build_date="$(LANG=C date +"%e %B %Y" -d "$stamp" | sed 's/^ //')"
     63 else
     64   ac_build_date="${stamp##*-} ${${stamp%-*}#*-} ${stamp%%-*}"
     65 fi
     66AC_MSG_RESULT([$ac_build_date])
    6767AC_DEFINE_UNQUOTED(DATE, "$ac_build_date", [Define the version date])
    6868
Note: See TracChangeset for help on using the changeset viewer.