Last active
November 2, 2015 11:05
-
-
Save deathbeam/15bb6805554602adb093 to your computer and use it in GitHub Desktop.
Raxefile example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- vim: set ft=rb: | |
-- We can also use Haxe libraries | |
fs = require("sys/FileSystem") | |
-- Set default target to build() | |
def default = build | |
def build() | |
-- Copy something | |
cp("assets/mymusic.ogg", "assets/music/mymusic.ogg") | |
-- Delete temporary directory | |
rm("assets/temp") | |
-- Just some operations with enviroment variables | |
env.set("ENV_VAR", "my env var") | |
trace(env.get("ENV_VAR")) | |
-- Execute command | |
sh("echo HelloWorld") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment