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
|
MAJOR = 5
|
||||||
MINOR = 3
|
MINOR = 3
|
||||||
BUG = 0
|
BUG = 0
|
||||||
EXTRA = "rc1"
|
EXTRA = ""
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
|
||||||
PREFIX = "/usr"
|
PREFIX = "/usr"
|
||||||
|
@ -61,7 +61,6 @@ def ocarina_sh(target, source, env):
|
||||||
f.write("#!/bin/bash\n")
|
f.write("#!/bin/bash\n")
|
||||||
f.write(PREFIX + "/lib/ocarina/ocarina.bin \"$*\"\n")
|
f.write(PREFIX + "/lib/ocarina/ocarina.bin \"$*\"\n")
|
||||||
f.close()
|
f.close()
|
||||||
#return "./ocarina.sh"
|
|
||||||
env.Command(bin, None, [ocarina_sh, Move(bin, "ocarina.sh"), Chmod(bin, 0755)])
|
env.Command(bin, None, [ocarina_sh, Move(bin, "ocarina.sh"), Chmod(bin, 0755)])
|
||||||
|
|
||||||
# Clean up the build directory
|
# Clean up the build directory
|
||||||
|
@ -70,12 +69,14 @@ Clean(ocarina, ["include/version.h"])
|
||||||
# Create a tarball
|
# Create a tarball
|
||||||
def git_archive(target, source, env):
|
def git_archive(target, source, env):
|
||||||
import os
|
import os
|
||||||
version = "%s.%s" % (MAJOR, MINOR)
|
version = "%s.%s" % (MAJOR, MINOR)
|
||||||
if BUG != 0:
|
if BUG != 0:
|
||||||
version += ".%s" % BUG
|
version += ".%s" % BUG
|
||||||
if EXTRA != "":
|
if EXTRA != "":
|
||||||
version += "-%s" % EXTRA
|
version += "-%s" % EXTRA
|
||||||
if DEBUG == True:
|
if DEBUG == True:
|
||||||
version += "-debug"
|
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])
|
env.Command("archive", None, [git_archive])
|
||||||
|
|
Loading…
Reference in New Issue