SCons build system: corrected building of ChangeLogs when building rpms

git-svn-id: https://svn.ibp.de/svn/capisuite/trunk/capisuite@412 4ebea2bb-67d4-0310-8558-a5799e421b66
This commit is contained in:
htgoebel 2005-01-20 18:05:45 +00:00
parent 2d2a5bfcf9
commit af0aa59638
2 changed files with 17 additions and 17 deletions

View File

@ -37,31 +37,30 @@ changelog_header = """
# ChangeLog.complete lists all changes in all branches if needed
# for reference.
"""
cl = env.Command(
'#/ChangeLog', None,
[Echo('$TARGET', changelog_header),
Echo('$TARGET', ''),
# need to set locale to set correct character encoding
'LANG=de_DE svn log -v -r "HEAD:{2005-01-01}" >> $TARGET'
])
cl = File('#/ChangeLog')
env.ExtraDist(cl)
if is_dist or 'ChangeLog' in COMMAND_LINE_TARGETS:
cl = env.Command(cl, None,
[Echo('$TARGET', changelog_header),
Echo('$TARGET', ''),
# need to set locale to set correct character encoding
'LANG=de_DE svn log -v -r "HEAD:{2005-01-01}" >> $TARGET'
])[0]
env.AlwaysBuild(cl)
changelog_complete_header = """
# This file is automatically generated from the Subversion
# repository. It contains all changes in all development branches
# and is only meant for reference purposes. If you want to see the
# changes which lead to this release, please refer to the ChangeLog
"""
cl = env.Command(
'#/ChangeLog.complete', None,
[Echo('$TARGET', changelog_complete_header),
Echo('$TARGET', ''),
# need to set locale to set correct character encoding
'LANG=de_DE svn log -v $SVNREPOSITORY >> $TARGET'
])
cl = File('#/ChangeLog.complete')
env.ExtraDist(cl)
if is_dist or 'ChangeLog.complete' in COMMAND_LINE_TARGETS:
if is_dist or 'ChangeLog' in COMMAND_LINE_TARGETS:
cl = env.Command(cl, None,
[Echo('$TARGET', changelog_complete_header),
Echo('$TARGET', ''),
# need to set locale to set correct character encoding
'LANG=de_DE svn log -v $SVNREPOSITORY >> $TARGET'
])[0]
env.AlwaysBuild(cl)

View File

@ -227,7 +227,8 @@ def Get_sfftobmp_Version(context):
# A Shortcut
is_dist = ('dist' in COMMAND_LINE_TARGETS or
'distcheck' in COMMAND_LINE_TARGETS)
'distcheck' in COMMAND_LINE_TARGETS or
'rpms' in COMMAND_LINE_TARGETS)
###---####---###---####---###---####---###---####---###---####---###---###