<reponame>steve-ord/askapsoft<gh_stars>1-10
import os, shutil
from askapdev.rbuild.builders import Data as DataBuilder
from askapdev.rbuild.builders import Builder
import askapdev.rbuild.utils as utils

# This directory is expected by the build system
if not os.path.exists("scripts/include"):
    os.makedirs("scripts/include")

# This directory is expected by the build system
if not os.path.exists("scripts/lib"):
    os.makedirs("scripts/lib")

builder = Builder(".")
builder.build()
databuilder = DataBuilder("scripts")
databuilder.build()

if os.access(builder._initscript_name,os.F_OK):
    bindir=os.getcwd()+'/install/bin'
    initfile=open(builder._initscript_name,'a+')
    initfile.write("""
#The following is required by the pipeline scripts.
PIPELINEDIR=%s
export PIPELINEDIR
"""%bindir)

    version=utils.get_svn_revision()
    initfile.write("""
#This is the release version
PIPELINE_VERSION=%s
export PIPELINE_VERSION
"""%version)
    
    initfile.close()


import os, shutil
from askapdev.rbuild.builders import Data as DataBuilder
from askapdev.rbuild.builders import Builder
import askapdev.rbuild.utils as utils

# This directory is expected by the build system
if not os.path.exists("scripts/include"):
    os.makedirs("scripts/include")

# This directory is expected by the build system
if not os.path.exists("scripts/lib"):
    os.makedirs("scripts/lib")

builder = Builder(".")
builder.build()
databuilder = DataBuilder("scripts")
databuilder.build()

if os.access(builder._initscript_name,os.F_OK):
    bindir=os.getcwd()+'/install/bin'
    initfile=open(builder._initscript_name,'a+')
    initfile.write("""
#The following is required by the pipeline scripts.
PIPELINEDIR=%s
export PIPELINEDIR
"""%bindir)

    version=utils.get_svn_revision()
    initfile.write("""
#This is the release version
PIPELINE_VERSION=%s
export PIPELINE_VERSION
"""%version)
    
    initfile.close()
# This directory is expected by the build system # This directory is expected by the build system #The following is required by the pipeline scripts. PIPELINEDIR=%s export PIPELINEDIR #This is the release version PIPELINE_VERSION=%s export PIPELINE_VERSION