Skip to content

Instantly share code, notes, and snippets.

View chrmoritz's full-sized avatar

Christian Moritz chrmoritz

  • Berlin, Germany
View GitHub Profile
execFile = require('child_process').execFile
stringify = require 'json-stable-stringify'
fs = require 'fs'
require '../test/TestUtils.coffee'
global.IO = require '../coffee/IO.coffee'
{Base64IO} = require '../coffee/Troxel.io.coffee'
path = if false then 'tools/Trove.json' else 'static/Trove.json' # 2015-01-13
sha = process.argv[2]
t = 2
@chrmoritz
chrmoritz / MacTroveDevtool
Last active December 14, 2015 02:01
Python Script to easily create blueprints from .qb files with the Trove devtool on OS X.
#!/usr/bin/env python
from __future__ import print_function
import os
import platform
import shutil
import sys
def main():
if platform.system() != 'Darwin':
. $topsrcdir/xulrunner/config/mozconfig
mk_add_options MOZ_OBJDIR=objdir
ac_add_options --disable-webrtc
ac_add_options --disable-libjpeg-turbo
ac_add_options --without-intl-api
ac_add_options --disable-tests
ac_add_options --disable-updater
ac_add_options --disable-crashreporter
. $topsrcdir/xulrunner/config/mozconfig
mk_add_options AUTOCONF=/usr/local/Cellar/autoconf213/2.13/bin/autoconf213
mk_add_options MOZ_MAKE_FLAGS="-j1"
mk_add_options MOZ_OBJDIR=objdir
mk_add_options MOZ_BUILD_PROJECTS="x86_64"
ac_add_options --disable-tests
ac_add_options --disable-updater
ac_add_options --disable-crashreporter
macbookair:local chris$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew
HEAD: cc3f2e803314d5aeaf6911af358a6be57ca5c567
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit ivybridge
OS X: 10.8.5-x86_64
Xcode: 5.0
CLT: 5.0.0.0.1.1377666378
This file has been truncated, but you can view the full file.
==> make -f client.mk build
make -f client.mk build
/usr/bin/make -f /private/tmp/slimerjs--xulrunner-kE0o/mozilla-release/client.mk realbuild
Adding client.mk options from /private/tmp/slimerjs--xulrunner-kE0o/mozilla-release/.mozconfig:
AUTOCONF=/usr/local/Cellar/autoconf213/2.13/bin/autoconf213
MOZ_OBJDIR=objdir
TEST-PASS | check-sync-dirs.py | /private/tmp/slimerjs--xulrunner-kE0o/mozilla-release/js/src/build <= /private/tmp/slimerjs--xulrunner-kE0o/mozilla-release/build
Generating /private/tmp/slimerjs--xulrunner-kE0o/mozilla-release/js/src/configure using autoconf
cd /private/tmp/slimerjs--xulrunner-kE0o/mozilla-release/js/src; /usr/local/Cellar/autoconf213/2.13/bin/autoconf213
python /private/tmp/slimerjs--xulrunner-kE0o/mozilla-release/config/pythonpath.py -I /private/tmp/slimerjs--xulrunner-kE0o/mozilla-release/testing/mozbase/mozfile \
require 'formula'
class Slimerjs < Formula
homepage 'http://www.slimerjs.org'
url 'http://download.slimerjs.org/v0.8/slimerjs-0.8.3.zip'
sha1 '8d2a6dc3b8200fa15cd9d65c84bc9358c11f03f8'
head 'https://github.com/laurentj/slimerjs.git'
option 'without-xulrunner', 'Do not add xulrunner (requires a local Firefox installation, default on OS X 10.6 and below)'
require 'formula'
class Slimerjs < Formula
homepage 'http://www.slimerjs.org'
url 'http://download.slimerjs.org/v0.8/slimerjs-0.8.3.zip'
sha1 '8d2a6dc3b8200fa15cd9d65c84bc9358c11f03f8'
head 'https://github.com/laurentj/slimerjs.git'
option 'without-xulrunner', 'Do not add xulrunner (requires a local Firefox installation, default on OS X 10.6 and below)'
. $topsrcdir/xulrunner/config/mozconfig
mk_add_options MOZ_OBJDIR=objdir
ac_add_options --enable-optimize
ac_add_options --disable-tests
ac_add_options --disable-updater
ac_add_options --disable-crashreporter
require 'formula'
# see: https://developer.mozilla.org/en-US/docs/Developer_Guide/Source_Code/Mercurial/Bundles
class HgBundleDownloadStrategy < CurlDownloadStrategy
def hgpath
# #{HOMEBREW_PREFIX}/share/python/hg is deprecated, but we levae it in for a while
@path ||= %W[
#{which("hg")}
#{HOMEBREW_PREFIX}/bin/hg
#{HOMEBREW_PREFIX}/opt/mercurial/bin/hg