Skip to content

Commit

Permalink
Close root-project#38: Implement switches --dmg-tag and --last-stable…
Browse files Browse the repository at this point in the history
…=dmg
  • Loading branch information
onyb authored and vgvassilev committed Aug 14, 2014
1 parent 7f55979 commit b1c4597
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions interpreter/cling/tools/packaging/cpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1576,6 +1576,14 @@ def make_dmg():
build_nsis()
cleanup()

elif args['last_stable'] == 'dmg':
set_version()
compile(os.path.join(workdir, 'cling-' + DIST + '-' + REV + '-' + platform.machine().lower() + '-' + VERSION))
install_prefix()
test_cling()
make_dmg()
cleanup()

if args['tarball_tag']:
fetch_llvm()
fetch_clang()
Expand Down Expand Up @@ -1633,6 +1641,17 @@ def make_dmg():
build_nsis()
cleanup()

if args['dmg_tag']:
fetch_llvm()
fetch_clang()
fetch_cling(args['dmg_tag'])
set_version()
compile(os.path.join(workdir, 'cling-' + DIST + '-' + REV + '-' + platform.machine().lower() + '-' + VERSION))
install_prefix()
test_cling()
make_dmg()
cleanup()

if args['make_proper']:
# This is an internal option in CPT, meant to be integrated into Cling's build system.
with open(os.path.join(LLVM_OBJ_ROOT, 'config.log'), 'r') as log:
Expand Down

0 comments on commit b1c4597

Please sign in to comment.