gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. c44a7b9ce018bbd7fcee


From: Rob Savoye
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. c44a7b9ce018bbd7fcee547fe84edbd7dad8dcce
Date: Wed, 15 Dec 2010 18:51:19 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  c44a7b9ce018bbd7fcee547fe84edbd7dad8dcce (commit)
      from  fede6c0dab1667f7d0b567e618d91e02732f8322 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=c44a7b9ce018bbd7fcee547fe84edbd7dad8dcce


commit c44a7b9ce018bbd7fcee547fe84edbd7dad8dcce
Author: Gabriele Giacone <address@hidden>
Date:   Wed Dec 15 00:00:13 2010 +0100

    Replace stat with if -nt to compare modification date. Fix openbsd build.

diff --git a/Makefile.am b/Makefile.am
index e9850b5..aab8a83 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -131,30 +131,25 @@ BUILT_SOURCES = revno.h .configline
 # only want to regenerate this file if that file changes, so we have to
 # do the dependency check ourselves.
 revno.h:
-       @if test -d $(top_srcdir)/.git -a x"${GIT}" != x; then \
-         nowmod="$(shell stat -c "%X" $(top_srcdir)/.git/index)"; \
-         if test -e .lastmod; then \
-           lastmod="$(shell cat .lastmod)"; \
-         else \
-           lastmod=0; \
-         fi; \
-         if test $${nowmod} -gt $${lastmod}; then \
+       @if test \! -e .lastmod; then \
+         touch -t 197001010000 .lastmod; \
+       fi; \
+       if test $(top_srcdir)/.git/index -nt .lastmod; then \
+         if test -d $(top_srcdir)/.git -a x"${GIT}" != x; then \
             echo "Getting build info for revno.h"; \
-           rm -f .lastmod; echo "$${nowmod}" > .lastmod; \
             revno="`cd $(top_srcdir) ; $(GIT) rev-list HEAD | wc -l`"; \
             comm_id="`cd $(top_srcdir) ; $(GIT) rev-parse --short HEAD`"; \
             nick="`cd $(top_srcdir) ; $(GIT) branch | grep '^\*' | cut -d ' ' 
-f 2`"; \
-         fi; \
-        else \
-          revno="$(NOW)"; \
-          nick="master"; \
-          comm_id="none"; \
-        fi; \
-       if test $${nowmod} -gt $${lastmod}; then \
+          else \
+            revno="$(NOW)"; \
+            comm_id="none"; \
+            nick="master"; \
+          fi; \
           echo "Generating revno.h ($${nick} $${revno} $${comm_id})"; \
           echo "static const char* BRANCH_REVNO  = \"$${revno}\";" > revno.h; \
           echo "static const char* BRANCH_NICK = \"$${nick}\";" >> revno.h; \
           echo "static const char* COMMIT_ID = \"$${comm_id}\";" >> revno.h; \
+          touch .lastmod; \
        fi
 
 .configline: revno.h

-----------------------------------------------------------------------

Summary of changes:
 Makefile.am |   27 +++++++++++----------------
 1 files changed, 11 insertions(+), 16 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]