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
master
htgoebel 18 years ago
parent 2d2a5bfcf9
commit af0aa59638
  1. 31
      SConscript
  2. 3
      SConstruct

@ -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)

@ -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)
###---####---###---####---###---####---###---####---###---####---###---###

Loading…
Cancel
Save