Skip to content

Commit

Permalink
Merge branch 'master' of github.com:PDAL/PDAL
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Dec 29, 2013
2 parents eade916 + ff82c74 commit 3b57abe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/pdal-config.in
Expand Up @@ -7,7 +7,7 @@ libdir=@libdir@
usage()
{
cat <<EOF
Usage: liblas-config [OPTIONS]
Usage: pdal-config [OPTIONS]
Options:
[--libs]
[--cflags]
Expand Down
24 changes: 12 additions & 12 deletions doc/conf.py
Expand Up @@ -50,21 +50,21 @@
# The short X.Y version.

def read_version(filename):
# oh yes, this is brittle
#
# set(PDAL_VERSION_STRING 0.9.8 CACHE STRING "PDAL version")
data = open(filename).readlines()
full = 'PDAL_VERSION_STRING'

for line in data:
if str(full) in line:
matchObj = re.search( r' (\d+\.\d+\.\d+) ', line, re.I )
if matchObj:
return matchObj.group(1)

return '0.0.0'

version = read_version('../CMakeLists.txt')
release = version
token = 'PDAL_VERSION_STRING'

for line in data:
if str(token) in line:
line = line.replace('SET('+token+' ', '')
line = line.replace(' CACHE STRING "PDAL VERSION")','')
line = line.replace('"','')
version = line.strip()
return '%s'%(version)

release = read_version('../CMakeLists.txt')

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit 3b57abe

Please sign in to comment.