Fix 'scons dist'
This makes 'scons dist' work, although the resulting tarballs are not yet identical to cmake tarballs. Remove awk usage made obsolete by the git transition (7f85fa000c
). Update src/revision.hpp reference to use src/revision.h. The former name is unused since at least7625b1e079
. (cherry-picked from commit0ee4854157
)
This commit is contained in:
parent
b9c26464b6
commit
0b633badc5
1 changed files with 2 additions and 2 deletions
|
@ -776,11 +776,11 @@ if 'dist' in COMMAND_LINE_TARGETS: # Speedup, the manifest is expensive
|
|||
def dist_manifest():
|
||||
"Get an argument list suitable for passing to a distribution archiver."
|
||||
# Start by getting a list of all files under version control
|
||||
lst = subprocess.check_output("git ls-files | grep -v 'data\/test\/.*' | awk '/^[^?]/ {print $4;}'", shell=True).split()
|
||||
lst = subprocess.check_output("git ls-files | grep -v 'data\/test\/.*'", shell=True).splitlines()
|
||||
lst = filter(os.path.isfile, lst)
|
||||
return lst
|
||||
dist_tarball = env.Tar('wesnoth-${version}.tar.bz2', [])
|
||||
open("dist.manifest", "w").write("\n".join(dist_manifest() + ["src/revision.hpp"]))
|
||||
open("dist.manifest", "w").write("\n".join(dist_manifest() + ["src/revision.h"]))
|
||||
env.Append(TARFLAGS='-j -T dist.manifest --transform "s,^,wesnoth-$version/,"',
|
||||
TARCOMSTR="Making distribution tarball...")
|
||||
env.AlwaysBuild(dist_tarball)
|
||||
|
|
Loading…
Add table
Reference in a new issue