From 7ab6ba24b0a03deea974b74315afccec1de4df42 Mon Sep 17 00:00:00 2001 From: Paul J R Date: Sat, 14 Nov 2009 04:51:42 +1100 Subject: [PATCH] added a cleanup script --- src/cleanit | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) create mode 100755 src/cleanit mode change 100644 => 100755 src/makeit diff --git a/src/cleanit b/src/cleanit new file mode 100755 index 0000000..d83b860 --- /dev/null +++ b/src/cleanit @@ -0,0 +1,15 @@ +rm -f *.cgo[1234].* *.so *.o *.a *.8 +cgo dbibridge.go + +8g -o _dbibridge_.8 dbibridge.cgo1.go dbibridge.cgo2.go +8c -FVw -I/export/src/external/golang//src/pkg/runtime dbibridge.cgo3.c +gopack grc dbibridge.a _dbibridge_.8 dbibridge.cgo3.8 +#cp dbibridge.a /export/src/external/golang//pkg/linux_386/dbibridge.a +gcc -m32 -fPIC -O2 -o dbibridge.cgo4.o -c dbibridge.cgo4.c +gcc -m32 -shared -L`pwd` -lpthread -lm -ldbi -o dbibridge_dbibridge.so dbibridge.cgo4.o +#cp dbibridge.so /export/src/external/golang//pkg/linux_386/./dbibridge_dbibridge.so + + + +8g -I. webconnector.go +8l -o godhammer -L. webconnector.8 diff --git a/src/makeit b/src/makeit old mode 100644 new mode 100755 -- 1.7.0.4