[Orca-checkins] r339 - trunk/orca/lib

Blair Zajac blair at orcaware.com
Mon Jun 7 23:09:56 PDT 2004


Author: blair
Date: Mon Jun  7 23:08:10 2004
New Revision: 339

Modified:
   trunk/orca/lib/Makefile.in
Log:
* lib/Makefile.in
  (install):
    When installing $(libdir)/Orca/Constants.pm, if svnversion can
    generate a good "version number" for the entire Orca directory
    tree, then set $ORCA_VER_REVISION to that value in the installed
    Constants.pm, not the source tree.


Modified: trunk/orca/lib/Makefile.in
==============================================================================
--- trunk/orca/lib/Makefile.in	(original)
+++ trunk/orca/lib/Makefile.in	Mon Jun  7 23:08:10 2004
@@ -50,6 +50,17 @@
 	    $(INSTALL) -m 0644 $$f $(libdir)/$$d; \
 	  done \
 	done
+	@current_rev="`cd ..; svnversion . 2>/dev/null`"; \
+	if test "$$current_rev" != "" && \
+           test "$$current_rev" != "exported"; then \
+	  echo "Found good svnversion for `cd ..; pwd`: $$current_rev"; \
+	  echo /opt/i386-linux/perl/bin/perl -w -p -i \
+	    -e 's/^(\$$ORCA_VER_REVISION\s*=\s*).*/$${1}"'$$current_rev'";/' \
+	    $(libdir)/Orca/Constants.pm; \
+	  /opt/i386-linux/perl/bin/perl -w -p -i \
+	    -e 's/^(\$$ORCA_VER_REVISION\s*=\s*).*/$${1}"'$$current_rev'";/' \
+	    $(libdir)/Orca/Constants.pm; \
+	fi
 
 clean:
 



More information about the Orca-checkins mailing list