Source

builders / fossil

Full commit
#!/usr/bin/env python

import os
import os.path
from build import *

SNAPSHOT = '20101005035549'

if machine.os_name != 'linux':
  error('OS not supported by the fossil builder: ' + machine.os_name)

if machine.bits == 32:
  arch = 'x86'
else:
  arch = 'amd64'

rmtree(BUILD_DIR)
mkdir(BUILD_DIR)
download('http://www.fossil-scm.org/download/fossil-linux-%s-%s.zip'
         % (arch, SNAPSHOT), 'fossil.zip')
call(['unzip', join(SRC_DIR, 'fossil.zip')], cwd=BUILD_DIR)
call(['cp', join(BUILD_DIR, 'fossil'), join(INSTALL_DIR, 'bin')], cwd='/')