The scons recipe cn now make binary and data tarballs.
This commit is contained in:
parent
9a13bfef52
commit
45c0b21771
2 changed files with 19 additions and 3 deletions
|
@ -166,7 +166,6 @@ BINARY_STAGING=/tmp/$(PACKAGE)-$(VERSION)-staging
|
|||
BINARY_DIST=/tmp/$(PACKAGE)-binary-$(VERSION).tar.gz
|
||||
DATA_DIST=/tmp/$(PACKAGE)-data-$(VERSION).tar.gz
|
||||
|
||||
# *** Not yet covered by scons recipe
|
||||
binary-dist:
|
||||
@rm -rf $(BINARY_STAGING) $(BINARY_DIST)
|
||||
@make install-exec DESTDIR=$(BINARY_STAGING)
|
||||
|
@ -174,7 +173,6 @@ binary-dist:
|
|||
@rm -rf $(BINARY_STAGING)
|
||||
@echo "Precompiled binary tarball is in $(BINARY_DIST)"
|
||||
|
||||
# *** Not yet covered by scons recipe
|
||||
data-dist:
|
||||
@rm -rf $(BINARY_STAGING) $(DATA_DIST)
|
||||
@make install-data DESTDIR=$(BINARY_STAGING)
|
||||
|
|
20
SConstruct
20
SConstruct
|
@ -12,7 +12,6 @@
|
|||
# To do (list is now exhaustive):
|
||||
#
|
||||
# 1. Dummy locales
|
||||
# 2. Making binary and data-only distribution tarballs
|
||||
|
||||
import os, sys, commands, shutil, sets, re
|
||||
from glob import glob
|
||||
|
@ -1211,6 +1210,25 @@ if 'dist' in COMMAND_LINE_TARGETS: # Speedup, the manifest is expensive
|
|||
env.Clean(all, 'wesnoth.tar.bz2')
|
||||
env.Alias('dist', dist_tarball)
|
||||
|
||||
#
|
||||
# Make binary distribution (from installed client side)
|
||||
#
|
||||
bin_tar_env = env.Clone()
|
||||
bin_tarball = bin_tar_env.Tar('wesnoth-binary.tar.bz2',
|
||||
os.path.join(bindir,"wesnoth"))
|
||||
bin_tar_env.Append(TARFLAGS='-j', TARCOMSTR="Making binary tarball...")
|
||||
env.Clean(all, 'wesnoth-binary.tar.bz2')
|
||||
env.Alias('binary-dist', bin_tarball)
|
||||
|
||||
#
|
||||
# Make data distribution (from installed client side)
|
||||
#
|
||||
data_tar_env = env.Clone()
|
||||
data_tarball = data_tar_env.Tar('wesnoth-data.tar.bz2', datadir)
|
||||
data_tar_env.Append(TARFLAGS='-j', TARCOMSTR="Making data tarball...")
|
||||
env.Clean(all, 'wesnoth-data.tar.bz2')
|
||||
env.Alias('data-dist', data_tarball)
|
||||
|
||||
#
|
||||
# Making Mac OS X application bundles
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue