Skip to content

Commit

Permalink
Builder: Optional build tag suffix for platform_release
Browse files Browse the repository at this point in the history
Allows building manually-tagged additional builds.
  • Loading branch information
skyjake committed Feb 10, 2012
1 parent 0ace5a7 commit 0fa6caa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion distrib/autobuild.py
Expand Up @@ -52,7 +52,7 @@ def todays_platform_release():
ev = builder.Event()

git_pull()
git_checkout(ev.tag())
git_checkout(ev.tag() + builder.config.TAG_MODIFIER)

# We'll copy the new files to the build dir.
os.chdir(builder.config.DISTRIB_DIR)
Expand Down Expand Up @@ -394,6 +394,7 @@ def sorted_commands():
print '--distrib Doomsday distrib directory'
print '--events Event directory (builds are stored here in subdirs)'
print '--apt Apt repository'
print '--tagmod Additional suffix for build tag for platform_release'
sys.exit(1)

if sys.argv[1] not in commands:
Expand Down
4 changes: 4 additions & 0 deletions distrib/builder/config.py
Expand Up @@ -17,6 +17,7 @@ def get_arg(label):
EVENT_DIR = '.'
DISTRIB_DIR = '.'
APT_REPO_DIR = ''
TAG_MODIFIER = ''

val = get_arg('--distrib')
if val is not None: DISTRIB_DIR = val
Expand All @@ -26,3 +27,6 @@ def get_arg(label):

val = get_arg('--apt')
if val is not None: APT_REPO_DIR = val

val = get_arg('--tagmod')
if val is not None: TAG_MODIFIER = val

0 comments on commit 0fa6caa

Please sign in to comment.