forked from mia/Aegisub
91d73ec8ea
1. cd aegisub/ 2. svn mv *cpp *h src/ 3. svn mv Makefile.am MatroskaParser.c auto4_perldata.inc bitmaps boost \ changelog.txt config gl include libosxutil libresrc md5.c msvc mythes.cxx \ mythes.hxx res.rc src/ 4. cd .. 5. svn mv FFmpegSource2/ INSTALL Makefile.am README acinclude.m4 \ autogen.sh automation/ bin build configure.in desktop dummy.txt lib \ libass/ m4macros/ packages/ po/ scripts/ universalchardet/ aegisub/ 6. mkdir -p docs/wiki_convert 7. svn add docs/wiki_convert 8. cd docs 9. svn mv aegisub_convert_docs.pl convert.bat output wiki_convert/ * See r2749 for full description. Originally committed to SVN as r2752.
28 lines
824 B
Python
28 lines
824 B
Python
#!/usr/bin/env python
|
|
# This file is used to automatically extract the SVN revision number and
|
|
# create a C include file.
|
|
|
|
#includes
|
|
from os.path import isfile
|
|
from sys import exit
|
|
|
|
#Get our SVN entries file - this has the rev # in it
|
|
svnfile=open('../.svn/entries', 'r')
|
|
|
|
svncontent=svnfile.readlines(10)
|
|
|
|
revision=svncontent[3]
|
|
|
|
#Write out our data
|
|
if isfile("svn-revision.h"):
|
|
infile = file("svn-revision.h", "r")
|
|
for ln in infile:
|
|
if ln == "#define BUILD_SVN_REVISION " + revision + "\n":
|
|
infile.close()
|
|
exit()
|
|
|
|
outfile = file("svn-revision.h", "w+")
|
|
outfile.write("// This file is automatically generated by make-svn-rev-header.py\n")
|
|
outfile.write("// Do not modify or add to revision control\n\n")
|
|
outfile.write("#define BUILD_SVN_REVISION " + revision + "\n")
|
|
outfile.close()
|