diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-04-01 22:07:42 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-04-01 22:07:42 -0500 |
commit | d7894dd67dee467741a937286dca381821a9abad (patch) | |
tree | 6f9c0baf493d7c9b64a2e2c45707439db7f03051 /pkg.rs | |
parent | fabcb790ede272334789673774d945b4785909a7 (diff) | |
download | rust-term-d7894dd67dee467741a937286dca381821a9abad.tar.gz rust-term-d7894dd67dee467741a937286dca381821a9abad.zip |
start trying to make rustpkg work
Diffstat (limited to 'pkg.rs')
-rw-r--r-- | pkg.rs | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +#[pkg(id = "net.tozt.rust-term", vers = "0.0.1")]; + +extern mod rustpkg; +use core::run::run_program; + +// XXX this doesn't work at all, need to figure out what i'm doing wrong +#[pkg_do(build)] +fn build () { + let exit = run_program("make", [~"clibs"]); + assert!(exit == 0); + let crate = rustpkg::Crate(~"src/term.rs").flag(~"-Ltmp"); + rustpkg::build(~[crate]); +} + +fn main () { } |