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:
parent
2d2a5bfcf9
commit
af0aa59638
31
SConscript
31
SConscript
|
@ -37,31 +37,30 @@ changelog_header = """
|
||||||
# ChangeLog.complete lists all changes in all branches if needed
|
# ChangeLog.complete lists all changes in all branches if needed
|
||||||
# for reference.
|
# for reference.
|
||||||
"""
|
"""
|
||||||
cl = env.Command(
|
cl = File('#/ChangeLog')
|
||||||
'#/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'
|
|
||||||
])
|
|
||||||
env.ExtraDist(cl)
|
env.ExtraDist(cl)
|
||||||
if is_dist or 'ChangeLog' in COMMAND_LINE_TARGETS:
|
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)
|
env.AlwaysBuild(cl)
|
||||||
|
|
||||||
|
|
||||||
changelog_complete_header = """
|
changelog_complete_header = """
|
||||||
# This file is automatically generated from the Subversion
|
# This file is automatically generated from the Subversion
|
||||||
# repository. It contains all changes in all development branches
|
# repository. It contains all changes in all development branches
|
||||||
# and is only meant for reference purposes. If you want to see the
|
# and is only meant for reference purposes. If you want to see the
|
||||||
# changes which lead to this release, please refer to the ChangeLog
|
# changes which lead to this release, please refer to the ChangeLog
|
||||||
"""
|
"""
|
||||||
cl = env.Command(
|
cl = File('#/ChangeLog.complete')
|
||||||
'#/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'
|
|
||||||
])
|
|
||||||
env.ExtraDist(cl)
|
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)
|
env.AlwaysBuild(cl)
|
||||||
|
|
|
@ -227,7 +227,8 @@ def Get_sfftobmp_Version(context):
|
||||||
|
|
||||||
# A Shortcut
|
# A Shortcut
|
||||||
is_dist = ('dist' in COMMAND_LINE_TARGETS or
|
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…
Reference in New Issue