require 'formula' def kext_prefix prefix + 'Library' + 'Extensions' end class Fuse4xKext < Formula homepage 'http://fuse4x.org/' url 'https://github.com/fuse4x/kext.git', :tag => "fuse4x_0_8_14" version "0.8.14" def install ENV.delete('CC') ENV.delete('CXX') args = [ "-sdk", "macosx#{MACOS_VERSION}", "-configuration", "Release", "-alltargets", "MACOSX_DEPLOYMENT_TARGET=#{MACOS_VERSION}", "SYMROOT=build", # Build a 32-bit kernel extension on Leopard and a fat binary for Snow # Leopard/Lion. "ARCHS=i386 #{'x86_64' if MacOS.prefer_64_bit?}", 'ONLY_ACTIVE_ARCH=NO' ] system "/usr/bin/xcodebuild", *args system "/bin/mkdir -p build/Release/fuse4x.kext/Support" system "/bin/cp build/Release/load_fuse4x build/Release/fuse4x.kext/Support" kext_prefix.install "build/Release/fuse4x.kext" end def caveats <<-EOS.undent In order for FUSE-based filesystems to work, the fuse4x kernel extension must be installed by the root user: sudo cp -rfX #{kext_prefix}/fuse4x.kext /System/Library/Extensions sudo chmod +s /System/Library/Extensions/fuse4x.kext/Support/load_fuse4x If upgrading from a previous version of Fuse4x, the old kernel extension will need to be unloaded before performing the steps listed above. First, check that no FUSE-based filesystems are running: mount | grep fuse4x Unmount all FUSE filesystems and then unload the kernel extension: sudo kextunload -b org.fuse4x.kext.fuse4x EOS end end 0.9.14'>logtreecommitdiffstats
path: root/docs/src/gen-docs.js
blob: 7e17ea8f055c237e2f0ecb1c0f4d3b30548315e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
require.paths.push(__dirname);
require.paths.push('lib');
var reader = require('reader.js'),
    ngdoc = require('ngdoc.js'),
    writer = require('writer.js'),
    callback = require('callback.js'),
    SiteMap = require('SiteMap.js').SiteMap;

var docs = [];
var start;
var work = callback.chain(function(){
  start = now();
  console.log('Generating Angular Reference Documentation...');
  reader.collect(work.waitMany(function(text, file, line){
    var doc = new ngdoc.Doc(text, file, line);
    docs.push(doc);
    doc.parse();
  }));
});
var writes = callback.chain(function(){
  ngdoc.merge(docs);
  docs.forEach(function(doc){
    writer.output(doc.id + '.html', doc.html(), writes.waitFor());
  });
  var metadata = ngdoc.metadata(docs);
  writer.output('docs-keywords.js', ['NG_PAGES=', JSON.stringify(metadata).replace(/{/g, '\n{'), ';'], writes.waitFor());
  writer.copyImages(writes.waitFor());
  writer.copy('index.html', writes.waitFor());
  writer.copy('docs.js', writes.waitFor());
  writer.copy('docs.css', writes.waitFor());
  writer.copy('doc_widgets.js', writes.waitFor());
  writer.copy('doc_widgets.css', writes.waitFor());
  writer.copy('docs-scenario.html', writes.waitFor());
  writer.output('docs-scenario.js', ngdoc.scenarios(docs), writes.waitFor());
  writer.output('sitemap.xml', new SiteMap(docs).render(), writes.waitFor());
  writer.output('robots.txt', 'Sitemap: http://docs.angularjs.org/sitemap.xml\n', writes.waitFor());
  writer.copy('syntaxhighlighter/shBrushJScript.js', writes.waitFor());
  writer.copy('syntaxhighlighter/shBrushXml.js', writes.waitFor());
  writer.copy('syntaxhighlighter/shCore.css', writes.waitFor());
  writer.copy('syntaxhighlighter/shCore.js', writes.waitFor());
  writer.copy('syntaxhighlighter/shThemeDefault.css', writes.waitFor());
  writer.copy('jquery.min.js', writes.waitFor());
});
writes.onDone(function(){
  console.log('DONE. Generated ' + docs.length + ' pages in ' +
      (now()-start) + 'ms.' );
});
work.onDone(writes);
writer.makeDir('build/docs/syntaxhighlighter', work);

///////////////////////////////////
function now(){ return new Date().getTime(); }