You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by pq...@apache.org on 2009/02/15 03:01:30 UTC

svn commit: r744595 - /labs/orthrus/trunk/SConstruct

Author: pquerna
Date: Sun Feb 15 02:01:30 2009
New Revision: 744595

URL: http://svn.apache.org/viewvc?rev=744595&view=rev
Log:
Construct filenames based on orthrus_major, rather than hard coding.

Modified:
    labs/orthrus/trunk/SConstruct

Modified: labs/orthrus/trunk/SConstruct
URL: http://svn.apache.org/viewvc/labs/orthrus/trunk/SConstruct?rev=744595&r1=744594&r2=744595&view=diff
==============================================================================
--- labs/orthrus/trunk/SConstruct (original)
+++ labs/orthrus/trunk/SConstruct Sun Feb 15 02:01:30 2009
@@ -20,6 +20,7 @@
 from os.path import join as pjoin
 opts = Variables('build.py')
 
+# TODO: Move these to be gathered from a version header file.
 orthrus_major = 0
 orthrus_minor = 1
 orthrus_patch = 0
@@ -38,7 +39,7 @@
 if env['PLATFORM'] == 'darwin':
     env.AppendUnique(LINKFLAGS = ['-undefined', 'dynamic_lookup'])
 
-lib = env.SharedLibrary(target='orthrus-0', source = ['src/core.c', 'src/error.c'])
+lib = env.SharedLibrary(target='orthrus-%d' % (orthrus_major), source = ['src/core.c', 'src/error.c'])
 headers = env.Glob('include/*.h')
 
 appenv = env.Clone()
@@ -48,7 +49,7 @@
 install = []
 install.extend(env.Install(pjoin(env['DESTDIR'], env['PREFIX'], 'bin'), app))
 install.extend(env.Install(pjoin(env['DESTDIR'], env['PREFIX'], 'lib'), lib))
-install.extend(env.Install(pjoin(env['DESTDIR'], env['PREFIX'], 'include', 'orthrus-0'), headers))
+install.extend(env.Install(pjoin(env['DESTDIR'], env['PREFIX'], 'include', "orthrus-%d" % (orthrus_major)), headers))
 
 targets = [lib, app]
 env.Alias('install', install)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org