Skip to content

Instantly share code, notes, and snippets.

@deathbeam
Last active November 2, 2015 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deathbeam/15bb6805554602adb093 to your computer and use it in GitHub Desktop.
Save deathbeam/15bb6805554602adb093 to your computer and use it in GitHub Desktop.
Raxefile example
-- 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