Skip to content

Instantly share code, notes, and snippets.

@juntalis
juntalis / firefox20-build.cmd
Created April 21, 2013 08:14
Working on a helper utility that hooks a compiler and records its command-line arguments. (With the intended purpose of using one build automation's build file to another without having to worry about the file format itself) Anyways, this is just a generated .bat file based on a compile of Firefox 20. (which failed near the end)
This file has been truncated, but you can view the full file.
@echo off
set PATH=c:\development\app.src.pkgs\mozilla\mozilla-build\msys\local;c:\development\app.src.pkgs\mozilla\mozilla-build\wget;c:\development\app.src.pkgs\mozilla\mozilla-build\7zip;c:\development\app.src.pkgs\mozilla\mozilla-build\blat261\full;c:\development\app.src.pkgs\mozilla\mozilla-build\python;c:\development\app.src.pkgs\mozilla\mozilla-build\svn-win32-1.6.3\bin;c:\development\app.src.pkgs\mozilla\mozilla-build\upx203w;c:\development\app.src.pkgs\mozilla\mozilla-build\emacs-22.3\bin;c:\development\app.src.pkgs\mozilla\mozilla-build\info-zip;c:\development\app.src.pkgs\mozilla\mozilla-build\nsis-2.22;c:\development\app.src.pkgs\mozilla\mozilla-build\nsis-2.33u;c:\development\app.src.pkgs\mozilla\mozilla-build\nsis-2.46u;c:\development\app.src.pkgs\mozilla\mozilla-build\wix-351728;c:\development\app.src.pkgs\mozilla\mozilla-build\hg;c:\development\app.src.pkgs\mozilla\mozilla-build\python\scripts;c:\development\app.src.pkgs\mozilla\mozilla-build\kdiff3;c:\development\app.src.pkgs\mozilla\mozilla-
from win32file import *
from winioctlcon import FSCTL_GET_REPARSE_POINT
__all__ = ['islink', 'readlink']
# Win32file doesn't seem to have this attribute.
FILE_ATTRIBUTE_REPARSE_POINT = 1024
# To make things easier.
REPARSE_FOLDER = (FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_REPARSE_POINT)
@echo off
goto Main
:GetVirtualEnvName
rem If the foldername of the virtual env contains a dot, (ex: .vip)
rem part of the foldername will end up in the extension part of the path.
rem Because of that, we'll combine the extension and name parts of the
rem path.
set PROMPT=(%~n1%~x1) %PROMPT%
goto :EOF
(function ($G, N, D, S, O, F, A, M, I, _undef) {
var undef, def,
J = 'JSON',
_S = 'tring',
SS = 'S'+_S,
c = 'call',
p = 'prototype',
sl = 'slice',
l = 'length',
t = 'to',
# encoding: utf-8
"""
http
TODO: Description
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, Version 2, as published by Sam Hocevar. See
http://sam.zoy.org/wtfpl/COPYING for more details.
##############################################
# #
# @@@ #
# @@@@@@@@@@@@@@@@ #
# @@@ @@@@@@@@@@@@ #
# @ @@@@@@@@@@@@ #
# @@ @@@@@@@@@@@@@ #
# @ @@@@@@@@@@@@@@ #
# @ @@@@@@ @@ #
# @ @ #
local ffi = require('ffi')
local rpcrt4 = ffi.load('rpcrt4')
local ole32 = ffi.load('ole32')
local shell32 = ffi.load('shell32')
CLSCTX_INPROC_SERVER = 0x01
CLSCTX_INPROC_HANDLER = 0x02
CLSCTX_LOCAL_SERVER = 0x04
CLSCTX_INPROC_SERVER16 = 0x08
CLSCTX_REMOTE_SERVER = 0x10
import string
ws = string.whitespace
def cleanup(doc):
return ' '.join([ l.strip(ws) for l in doc.splitlines() ])
class Declaration(object):
def __init__(self, name, doc=None):
self.name = name
namespace RegUnedit.LibConfig
{
internal sealed class Module : IDisposable
{
...
private void loadFunctions(HMODULE hmod)
{
if(mapProcs != null) { throw new Exception("This should not happen."); }
local ffi = require('ffi')
local rpcrt4, ole32, shell32 =
ffi.load('rpcrt4'),
ffi.load('ole32'),
ffi.load('shell32')
CLSCTX_INPROC_SERVER = 0x01
CLSCTX_INPROC_HANDLER = 0x02
CLSCTX_LOCAL_SERVER = 0x04
CLSCTX_INPROC_SERVER16 = 0x08