aboutsummaryrefslogtreecommitdiffstats
path: root/pkg.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-04-01 22:07:42 -0500
committerJesse Luehrs <doy@tozt.net>2013-04-01 22:07:42 -0500
commitd7894dd67dee467741a937286dca381821a9abad (patch)
tree6f9c0baf493d7c9b64a2e2c45707439db7f03051 /pkg.rs
parentfabcb790ede272334789673774d945b4785909a7 (diff)
downloadrust-term-d7894dd67dee467741a937286dca381821a9abad.tar.gz
rust-term-d7894dd67dee467741a937286dca381821a9abad.zip
start trying to make rustpkg work
Diffstat (limited to 'pkg.rs')
-rw-r--r--pkg.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg.rs b/pkg.rs
new file mode 100644
index 0000000..9e9edeb
--- /dev/null
+++ b/pkg.rs
@@ -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 () { }