Skip to content

Instantly share code, notes, and snippets.

@aberant
Created April 25, 2013 22:21
Show Gist options
  • Save aberant/5463713 to your computer and use it in GitHub Desktop.
Save aberant/5463713 to your computer and use it in GitHub Desktop.
r͞equ͟ire "f͠ile͝uţils҉"̷
requir͠e ͘"rb̴ćo͏n͠f̢i͝g"͢
́m͝ód͡u͘l̀e ͠Cap̢y͞b͏ar̕a͜W̴èb̢ḱi͘t͏B̨ui̶l͟d̵e͟r͡
̨ ̶ ext҉en̛d ͏self͞
̀ ͏ d͠e͜f ̨ḿa͘k͜e҉_bi͏n
̴ ̷ ͝ ́ĘNV͞['M̴AKE̕'͞]͝ ͘||͏ ҉'ma͡k͢e'
҉e͞nd̶
͢
̕ ̕def͝ ̵qmak͞e_͟bin
̶ ̵ E͟NV̴['QM͏AK͟E'] || ́'͜q͘make̛'͘
͞ eņd
͝ ̀ def̸ şp͟e͜c͟
͠ ͞EN̴V[̕'S̵PE҉C̛'] ||̢ o͠s͜_͞spec
e͏nḑ
de̶f̵ os͟_s͟pec
͝ ͡ ͡ ca̢s̢e͠ ̷ŖbC̨o̴nf́ig͟:̷:C̶O͠ŃF̡I͞G[̵'ho͠st́_o̷s'͡]
̧ ͠ ̴ ҉w̵h҉en͟ ͜/̴lin҉ux/
͡ ̛"l͠inux͝-͝g̵+̴+"͡
͡ ̴ w͘h͏en ̸/̛f̷ŗȩeb͠sd̛/҉
̧ ̕ ́ ͠ ̛ ͝"f͜ree̕bs̸d-g+̕+"́
҉ ̸wh̸e͏n̴ /̸m͝i̶ngw͜3́2/̕
̴ ̵ "wi͟n̨32̧-͞g+̴+"
̸ ̶ ͝e̢ls̢e̷
̛ ͜ ̴ ҉ ͏ ̛ "͘mac͘x-g͜+̀+͡"̵
̛ e̡n͠d
en̴d
̢ ͠ ͡def m̨a͞k̡efile͢
̀ ̵ sy̛s̶tem("#{qmak̷e_b͘i͢n̸} -͠s͞pec͘ ̴#̀{spe̴c}͡"̕)҉
̕ ̸ ͏e͠n̵d
͝
́ def̀ qma͟ke҉
͠ ͞ ̷ ́sy̸stém("͏#̷{make̵_͢b͠i̛n} q͞m̧a̷ke͟")
̶ ͢ e͟n̸d̵
̡
̀ d̀e̷f́ p͢ath_to_͘bi̢n͠a͏r̕y͏
͞ c͏as͞e R̨U̶BY͞_P͏L͢A̷TFÓR̷M
͟ ͏ ͝ ̕wh̶en /mi̕n͠g̴w̸3̶2/̴
̷ "sr̴c/d̷e͟b̀u͝g/͢w͜e̸bk̡it_s҉er̢v҉e͜r.̧exe̷"͏
͟ els̢e͢
͜ ̧ "͜s̴rc͡/͏w͞ebki̸t_̧se͘r͟v͜er"
̨ ͡ ͡ en͝ḑ
͜ ̧end͜
̵
̷ def̨ ͘b͜u҉ild
̡ ͏ ̕s͏yst͞em(ḿák͜e͟_̸bi̵n) óŗ ͢r҉etu̕r̕n͜ ͞f͞als̨e͘
͟
͞ ̧ ̛ ͞Fi͢le͡U̵ti̴ls͟.mkd͡ir͟("bi̧n")҉ ̡u͏nle̢ss̛ ͡F̡il̀é.d́ir̀e̢c͝to̸ry͝?͞("b͞ìņ"͢)
̧ ́ FileUti͞ls.͟cp̀(p̷a͝th_to҉_bi͠n͝arỳ, "̢bin͏"̧, :pr̢ese̡rve҉ =̢>͡ true͢)̴
̡ ̸en͘d
͟
͞d̡e̴f ͡cle҉aņ
͠ ̴ ̴File͠.op̵en̢(͝"̧M̧ak͏e̵f́il͝e͝"̸,͝ ͞"w") ̵do͟ ̧|͜f҉ile|͠
̢ ̷ f͞i҉l̷e̴.̧p͟r͠in͏t ̸"al͜l̶:̨\̶n\͏t@e͘chó ok̛\͏nin̴s͏t͝a̷l͏l̨:̸\͘n̕\̴t@ech̛o o͠k"
͜ ̴ ͘ end
̛ eņḑ
́
͏ ̴d̕e͘f ͏b̛uil̴d_̵a҉l̶l
̕ ̕ m̸a̷k̡ef͢i͜l͟e ͝&҉&̕
̶ ́ q̨m͞a͢k̸e̴ ̸&͞&
̡ ͢build ͞&͞&
̶ ̨ ̕ ̢c͠l҉e͟a͠n͡
̛ e̵nd̢
end̷
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment