set hg revision in Gajim version
This commit is contained in:
		
							parent
							
								
									ea07baeab9
								
							
						
					
					
						commit
						b66a3e4c9e
					
				
					 3 changed files with 14 additions and 1 deletions
				
			
		|  | @ -1,4 +1,12 @@ | ||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
|  |   gajimversion="0.13.90" | ||||||
|  |   if [ -d ".hg" ]; then | ||||||
|  |     hgversion="-$(hexdump -n6 -e'6/1 "%02x"' .hg/dirstate)" | ||||||
|  |   else | ||||||
|  |     hgversion="" | ||||||
|  |   fi | ||||||
|  |   echo "define([AC_PACKAGE_VERSION], [${gajimversion}${hgversion}])" > m4/hgversion.m4 | ||||||
|  | 
 | ||||||
|   AM_ARGS="--add-missing --gnu --copy" |   AM_ARGS="--add-missing --gnu --copy" | ||||||
|   CONF_ARGS="" |   CONF_ARGS="" | ||||||
|   if test x`uname -s 2>/dev/null` = 'xDarwin' -a -f /Library/Frameworks/GTK+.framework/Versions/Current/env; then |   if test x`uname -s 2>/dev/null` = 'xDarwin' -a -f /Library/Frameworks/GTK+.framework/Versions/Current/env; then | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| AC_INIT([Gajim - A Jabber Instant Messager], | AC_INIT([Gajim - A Jabber Instant Messager], | ||||||
| 		[0.13.90],[http://trac.gajim.org/],[gajim]) | 		["version-set-in-hgversion"],[http://trac.gajim.org/],[gajim]) | ||||||
| AC_PREREQ([2.59]) | AC_PREREQ([2.59]) | ||||||
| 
 | 
 | ||||||
| AC_CONFIG_HEADER(config.h) | AC_CONFIG_HEADER(config.h) | ||||||
|  |  | ||||||
|  | @ -47,3 +47,8 @@ AC_DEFUN([AS_AC_EXPAND], | ||||||
|   prefix=$prefix_save |   prefix=$prefix_save | ||||||
|   exec_prefix=$exec_prefix_save |   exec_prefix=$exec_prefix_save | ||||||
| ]) | ]) | ||||||
|  | 
 | ||||||
|  | # Fix autoconf: They don't allow shell variables in AC_INIT | ||||||
|  | # So we have to define them via m4 to be accepted.... | ||||||
|  | 
 | ||||||
|  | m4_include(m4/hgversion.m4) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue