$ svn co https://llvm.org/svn/llvm-project/llvm/branches/release_29@127367 llvm-2.9
$ cd llvm-2.9
$ env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" CC=/usr/bin/gcc CXX=/usr/bin/g++ ./configure --enable-bindings=none --enable-optimized --with-llvmgccdir=/tmp
$ env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" CC=/usr/bin/gcc CXX=/usr/bin/g++ make
$ sudo env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" CC=/usr/bin/gcc CXX=/usr/bin/g++ make install
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
#!/usr/bin/ruby | |
#カレントディレクトリを取得 | |
dir = `pwd` #エディタにフォーカスがないと、上手くそのファイルのディレクトリに移動できない・・。 | |
puts dir | |
#ターミナル.appにさせる処理(AppleScript)を文字列に詰める | |
terminal = "\\\"Terminal\\\"" #\"Terminal\" | |
cmd1 = "\\\"cd /\\\"" | |
cmd2 = "\\\"echo foo\\\"" |
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
#!/bin/bash | |
echo jumping to apple man page... | |
echo level is $1 | |
echo target manual is $2 | |
open http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man$1/$2.$1.html |
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
#!/bin/sh | |
#echo $1 $2 $3 $4 $5 | |
man $1 $2 $3 $4 $5 | col -b | mate |
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
#anyhow,we should use \\$, not \$.. | |
#https://discussions.apple.com/thread/1265800?threadID=1265800 | |
#I think alsp \\\$ should work. | |
export PS1="\[\033[36m\][\u@\h:\w]\\$ \[\033[0m\]" |
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
#!/bin/bash | |
#pipe to cotEditor | |
#example: | |
# ls -alF | cot.sh | |
# man mount | col -b | cot.sh | |
file=`mktemp -t cot` | |
rm -f $file |
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
$ gcc main.m -framework Foundation -framework MacRuby -fobjc-gc | |
$ ./a.out | |
Fixnum | |
42 |
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
diff --git a/Rakefile b/Rakefile | |
index 1e41707..f94998c 100644 | |
--- a/Rakefile | |
+++ b/Rakefile | |
@@ -77,6 +77,8 @@ specification_version: 2 | |
summary: N-dimensional Numerical Array class for Ruby | |
test_files: [] | |
+licenses: [] | |
+ |
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
diff --git a/Rakefile b/Rakefile | |
index 1e41707..f94998c 100644 | |
--- a/Rakefile | |
+++ b/Rakefile | |
@@ -77,6 +77,8 @@ specification_version: 2 | |
summary: N-dimensional Numerical Array class for Ruby | |
test_files: [] | |
+licenses: [] | |
+ |
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
#import <Foundation/Foundation.h> | |
#import <MacRuby/MacRuby.h> | |
int main(void) | |
{ | |
id fooClass; | |
id foo; | |
[[MacRuby sharedRuntime] evaluateFileAtPath:@"test.rb"]; | |
fooClass = [[MacRuby sharedRuntime] evaluateString:@"Foo"]; |
OlderNewer