build: Updated Sconstruct
A few fixes before releasing 5.3
This commit is contained in:
parent
82cb17c1cb
commit
a9b4147df8
|
@ -4,7 +4,7 @@ import sys
|
|||
MAJOR = 5
|
||||
MINOR = 3
|
||||
BUG = 0
|
||||
EXTRA = "rc1"
|
||||
EXTRA = ""
|
||||
DEBUG = False
|
||||
|
||||
PREFIX = "/usr"
|
||||
|
@ -61,7 +61,6 @@ def ocarina_sh(target, source, env):
|
|||
f.write("#!/bin/bash\n")
|
||||
f.write(PREFIX + "/lib/ocarina/ocarina.bin \"$*\"\n")
|
||||
f.close()
|
||||
#return "./ocarina.sh"
|
||||
env.Command(bin, None, [ocarina_sh, Move(bin, "ocarina.sh"), Chmod(bin, 0755)])
|
||||
|
||||
# Clean up the build directory
|
||||
|
@ -70,12 +69,14 @@ Clean(ocarina, ["include/version.h"])
|
|||
# Create a tarball
|
||||
def git_archive(target, source, env):
|
||||
import os
|
||||
version = "%s.%s" % (MAJOR, MINOR)
|
||||
version = "%s.%s" % (MAJOR, MINOR)
|
||||
if BUG != 0:
|
||||
version += ".%s" % BUG
|
||||
if EXTRA != "":
|
||||
version += "-%s" % EXTRA
|
||||
if DEBUG == True:
|
||||
version += "-debug"
|
||||
os.popen("git archive --prefix=ocarina/ -o ocarina-%s.tar.gz HEAD" % (version))
|
||||
ocarina="ocarina-%s" % version
|
||||
os.popen("git archive --prefix=%s/ -o %s.tar.gz HEAD" % (ocarina, ocarina))
|
||||
print "md5sum:", os.popen("md5sum %s.tar.gz" % ocarina).read()
|
||||
env.Command("archive", None, [git_archive])
|
||||
|
|
Loading…
Reference in New Issue