[postgis-devel] [PostGIS] #242: Go back to having different scripts version from postgis lib version

PostGIS trac at osgeo.org
Mon Nov 9 21:56:40 PST 2009


#242: Go back to having different scripts version from postgis lib version
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  pramsey      
      Type:  defect   |      Status:  reopened     
  Priority:  medium   |   Milestone:  postgis 1.4.1
 Component:  postgis  |     Version:               
Resolution:           |    Keywords:               
----------------------+-----------------------------------------------------
Comment (by robe):

 Okay I thought about this a bit more and Paul while I like your concept --
 wouldn't it be easier to automate as part of our compile process if we
 just grep sed the .sql.in.c  files and read the svn version from the head
 of the files rather than doing an http call.
 They all have a line of the form:

 {{{
 $Id: uninstall_long_xact.sql.in.c 4494 2009-09-14 10:54:33Z mcayland $
 }}}

 That would remove perl out of the mix and assume would therefore make it
 easier to isolate to our configure.ac.  Similar to what we do already in
 the configure.ac (for POSTGIS_..VERSION) and I assume that logic could
 then be built directly in the configure.ac file.

 Then the line configure.ac line 575 would change to

 {{{
 POSTGIS_SCRIPT_SVN_VERSION = magical wonderful grep sed to read latest svn
 version from head of .sql.in.c files
 POSTGIS_SCRIPTS_VERSION="$POSTGIS_MAJOR_VERSION.$POSTGIS_MINOR_VERSION.$POSTGIS_SCRIPT_SVN_VERSION"
 }}}

 Though its the magical wonderful part I can't figure out how to write :)
 Anyone have any clues on that. I guess for 1.5 we can just hardcode it for
 now if my magical wonderful dream is not a trivial exercise for someone.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/242#comment:8>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS


More information about the postgis-devel mailing list