Permalink
Browse files

Start putting together a full build script

  • Loading branch information...
1 parent 697d9a0 commit 6bd75c9e7e6e1a15fa287a955de942d4ae0ccd02 tomhuda committed Aug 10, 2012
Showing with 23 additions and 0 deletions.
  1. +23 −0 build.sh
View
23 build.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+export CC=gcc-4.2
+
+sm set install all
+
+sm ext install tokaidoapp tokaido/tokaidoapp
+sm pkg-config install static
+sm tokaidoapp dependencies
+sm tokaidoapp install
+
+sm sqlite3 install static
+
+mkdir -p ./tmp_gem_home
+GEM_HOME=./tmp_gem_home
+
+function libdir() {
+ typeset filename=$(find ~/.sm/pkg/active -name "$1*.a")
+ echo $(dirname $filename)
+}
+
+echo $(libdir libsqlite3)
+gem install sqlite3 --no-ri --no-rdoc -- --with-sqlite3-lib=$(libdir libsqlite3)

1 comment on commit 6bd75c9

@arbales
tokaido member

Nice - 1st commit in three months - sounds like we're rolling!

Please sign in to comment.