changed version output slightly

Tue, 28 Aug 2012 16:44:32 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 28 Aug 2012 16:44:32 +0200
changeset 32
51d6e45a7592
parent 31
27c3c1c6b768
child 33
1a2d7298bc82

changed version output slightly

.cproject file | annotate | diff | comparison | revisions
Makefile file | annotate | diff | comparison | revisions
cline.c file | annotate | diff | comparison | revisions
     1.1 --- a/.cproject	Mon Feb 13 19:10:00 2012 +0100
     1.2 +++ b/.cproject	Tue Aug 28 16:44:32 2012 +0200
     1.3 @@ -89,8 +89,13 @@
     1.4  	<storageModule moduleId="cdtBuildSystem" version="4.0.0">
     1.5  		<project id="cline.null.1826762082" name="cline"/>
     1.6  	</storageModule>
     1.7 -	<storageModule moduleId="refreshScope" versionNumber="1">
     1.8 -		<resource resourceType="PROJECT" workspacePath="/cline"/>
     1.9 +	<storageModule moduleId="refreshScope" versionNumber="2">
    1.10 +		<configuration configurationName="Default">
    1.11 +			<resource resourceType="PROJECT" workspacePath="/cline"/>
    1.12 +		</configuration>
    1.13 +		<configuration configurationName="Debug">
    1.14 +			<resource resourceType="PROJECT" workspacePath="/cline"/>
    1.15 +		</configuration>
    1.16  	</storageModule>
    1.17  	<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
    1.18  		<buildTargets>
    1.19 @@ -121,4 +126,6 @@
    1.20  			<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/>
    1.21  		</scannerConfigBuildInfo>
    1.22  	</storageModule>
    1.23 +	<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
    1.24 +	<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
    1.25  </cproject>
     2.1 --- a/Makefile	Mon Feb 13 19:10:00 2012 +0100
     2.2 +++ b/Makefile	Tue Aug 28 16:44:32 2012 +0200
     2.3 @@ -37,6 +37,8 @@
     2.4  CONF = gcc
     2.5  #endif
     2.6  
     2.7 +VERSION_PREFIX=1.0.
     2.8 +
     2.9  include ${CONF}.mk
    2.10  
    2.11  .PHONY: setup run-compile teardown
    2.12 @@ -54,7 +56,7 @@
    2.13  	mkdir -p ${BUILDDIR}
    2.14  	rm -f ${BUILDDIR}cline.o
    2.15  	mv cline.h cline.src
    2.16 -	cat cline.src | sed "s/VERSION.*/VERSION=\"$(shell hg identify -n) ($(shell hg identify -i))\";/g" > cline.h
    2.17 +	cat cline.src | sed "s/VERSION.*/VERSION=\"${VERSION_PREFIX}$(shell hg identify -n) ($(shell hg identify -i))\";/g" > cline.h
    2.18  	
    2.19  teardown:
    2.20  	rm -f cline.h
     3.1 --- a/cline.c	Mon Feb 13 19:10:00 2012 +0100
     3.2 +++ b/cline.c	Tue Aug 28 16:44:32 2012 +0200
     3.3 @@ -56,7 +56,7 @@
     3.4  }
     3.5  
     3.6  int exit_with_version(settings_t* settings) {
     3.7 -  printf("cline - Revision: %s", VERSION);
     3.8 +  printf("cline - Revision: %s\n", VERSION);
     3.9    destroy_settings_t(settings);
    3.10    return 0;
    3.11  }

mercurial