|
From: <set...@us...> - 2009-05-29 18:43:49
|
Revision: 1810
http://frontierkernel.svn.sourceforge.net/frontierkernel/?rev=1810&view=rev
Author: sethdill
Date: 2009-05-29 18:43:47 +0000 (Fri, 29 May 2009)
Log Message:
-----------
This build script generates the exuberant ctags file for BBEdit. Requires a recent version of BBEdit.
Added Paths:
-----------
Frontier/branches/Conversant/build_XCode/tools/update_ctags.py
Added: Frontier/branches/Conversant/build_XCode/tools/update_ctags.py
===================================================================
--- Frontier/branches/Conversant/build_XCode/tools/update_ctags.py (rev 0)
+++ Frontier/branches/Conversant/build_XCode/tools/update_ctags.py 2009-05-29 18:43:47 UTC (rev 1810)
@@ -0,0 +1,51 @@
+#!/usr/bin/env python
+
+import os
+import sys
+import pdb
+
+TAGS_TEMP_FILE = '/tmp/tags'
+pdb.set_trace()
+
+#SRCROOT is /Users/seth/Projects/Frontier-Conversant/build_XCode
+projectDir = os.environ['SRCROOT']
+tagsFile = os.path.join(projectDir, '../tags')
+
+#username = os.environ['USER']
+
+#ctagsExecutiblePath = "/Applications/BBEdit.app/Contents/Resources/ctags"
+ctagsExecutiblePath = "/usr/bin/bbedit"
+if ( not os.path.exists( ctagsExecutiblePath ) ):
+ ctagsExecutiblePath = "/Applications/BBEdit.app/Contents/Resources/ctags"
+ if ( not os.path.exists( ctagsExecutiblePath ) ):
+ ctagsExecutiblePath = "/Applications/BBEdit.app/Contents/MacOS/ctags"
+ if ( not os.path.exists( ctagsExecutiblePath ) ):
+ exit
+
+baseArgs = '--maketags'
+appendArg = '--append'
+os.chdir('/')
+
+
+# create the tags file in '/tmp'
+buildTagsCommand = ''''%s' %s '%s' ''' %(ctagsExecutiblePath, baseArgs, os.path.join(projectDir, '../Common'))
+print( buildTagsCommand )
+output = os.popen(buildTagsCommand).read()
+print( output )
+
+# move it where it goes
+os.rename(TAGS_TEMP_FILE, tagsFile)
+
+
+# append the Shared Libs tags to the same file
+# appendSharedLibsTagsCommand = ''''%s' %s %s '%s' ''' %(ctagsExecutiblePath, appendArg, baseArgs, sharedLibsDir)
+# output = os.popen(appendSharedLibsTagsCommand).read()
+# print output
+
+# create the Shared Libs tags in '/tmp'
+#buildSharedLibsTagsCommand = ''''%s' %s '%s' ''' %(ctagsExecutiblePath, baseArgs, sharedLibsDir)
+#output = os.popen(buildSharedLibsTagsCommand).read()
+#print output
+
+# move it where it goes
+#os.rename(TAGS_TEMP_FILE, sharedLibsTagsFile)
\ No newline at end of file
Property changes on: Frontier/branches/Conversant/build_XCode/tools/update_ctags.py
___________________________________________________________________
Added: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|