X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=wscript;h=d6637f3f8cbe3b32e13b4361c3dcdec5926c7bab;hb=401af8742fe5b2bb3ec117acdc4b0b36bc8f5047;hp=b11eea0959eedba4a71767943622f4ede5383e4b;hpb=fb151e4285e8d2de330b728b23359139422b081c;p=dcpomatic.git diff --git a/wscript b/wscript index b11eea095..d6637f3f8 100644 --- a/wscript +++ b/wscript @@ -42,8 +42,6 @@ if this_version == '': else: VERSION = this_version[1:].strip() -print('Version: %s' % VERSION) - def options(opt): opt.load('compiler_cxx') opt.load('winres') @@ -566,6 +564,7 @@ def configure(conf): # Other stuff conf.find_program('msgfmt', var='MSGFMT') + conf.check(header_name='valgrind/memcheck.h', mandatory=False) datadir = conf.env.DATADIR if not datadir: @@ -607,15 +606,17 @@ def configure(conf): Logs.pprint('YELLOW', '') -def download_supporters(): +def download_supporters(can_fail): last_date = subprocess.Popen(shlex.split('git log -1 --format=%%ai %s' % last_version), stdout=subprocess.PIPE).communicate()[0] - r = os.system('curl -f https://dcpomatic.com/supporters.cc?%s > src/wx/supporters.cc' % urlencode({"until": last_date.strip()})) - if (r >> 8) != 0: - raise Exception("Could not download supporters list") + r = os.system('curl -s -f https://dcpomatic.com/supporters.cc?%s > src/wx/supporters.cc' % urlencode({"until": last_date.strip()})) + if (r >> 8) == 0: + r = os.system('curl -s -f https://dcpomatic.com/subscribers.cc?%s > src/wx/subscribers.cc' % urlencode({"until": last_date.strip()})) + if (r >> 8) != 0 and can_fail: + raise Exception("Could not download supporters lists") def build(bld): create_version_cc(VERSION, bld.env.CXXFLAGS) - download_supporters() + download_supporters(not bld.env.DEBUG) bld.recurse('src') bld.recurse('graphics')