Commit 1b112417 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Use Go tool throughout.

parent dfd827ce
#!/bin/sh #!/bin/sh
set -eux set -eux
rm -f fuse/version.gen.go sh genversion.sh fuse/version.gen.go
for target in "clean" "install" ; do
for target in "clean" "" "$@" ; do
for d in fuse benchmark zipfs unionfs \ for d in fuse benchmark zipfs unionfs \
example/hello example/loopback example/zipfs \ example/hello example/loopback example/zipfs \
example/bulkstat example/multizip example/unionfs \ example/bulkstat example/multizip example/unionfs \
example/autounionfs ; \ example/autounionfs ; \
do do
gomake -C $d $target go ${target} go-fuse/${d}
done done
done done
for d in fuse zipfs unionfs for d in fuse zipfs unionfs
do do
(cd $d && gotest ) (cd $d && go test go-fuse/$d )
done done
# TODO - reinstate the benchmark
exit 1
gomake -C benchmark cstatfs gomake -C benchmark cstatfs
for d in benchmark for d in benchmark
do do
(cd $d && gotest -test.bench '.*' -test.cpu 1,2 ) (cd $d && gotest -test.bench '.*' -test.cpu 1,2 )
done done
# Use "gomake install" to build and install this package.
include $(GOROOT)/src/Make.inc
TARG=autounionfs
GOFILES=main.go
DEPS=../../fuse ../../unionfs
include $(GOROOT)/src/Make.cmd
# Use "gomake install" to build and install this package.
include $(GOROOT)/src/Make.inc
TARG=bulkstat
GOFILES=bulkstat.go
DEPS=../../benchmark
include $(GOROOT)/src/Make.cmd
include $(GOROOT)/src/Make.inc
TARG=hello
GOFILES=main.go
DEPS=../../fuse
include $(GOROOT)/src/Make.cmd
# Use "gomake install" to build and install this package.
include $(GOROOT)/src/Make.inc
TARG=loopback
GOFILES=main.go
DEPS=../../fuse
include $(GOROOT)/src/Make.cmd
# Use "gomake install" to build and install this package.
include $(GOROOT)/src/Make.inc
TARG=memfs
GOFILES=main.go
DEPS=../../fuse
include $(GOROOT)/src/Make.cmd
# Use "gomake install" to build and install this package.
include $(GOROOT)/src/Make.inc
TARG=multizip
GOFILES=main.go
DEPS=../../fuse ../../zipfs
include $(GOROOT)/src/Make.cmd
# Use "gomake install" to build and install this package.
include $(GOROOT)/src/Make.inc
TARG=unionfs
GOFILES=main.go
DEPS=../../fuse ../../unionfs
include $(GOROOT)/src/Make.cmd
# Use "gomake install" to build and install this package.
include $(GOROOT)/src/Make.inc
TARG=zipfs
GOFILES=main.go
DEPS=../../fuse ../../zipfs
include $(GOROOT)/src/Make.cmd
# Use "gomake install" to build and install this package.
include $(GOROOT)/src/Make.inc
TARG=github.com/hanwen/go-fuse/fuse
MANUAL_GOFILES=api.go \
attr.go \
bufferpool.go \
copy.go \
default.go \
defaultfile.go \
defaultnode.go \
defaultraw.go \
direntry.go\
files.go \
fsmount.go \
fsconnector.go \
fuse.go \
handle.go \
inode.go \
latencymap.go \
lockingfs.go \
loopback.go \
misc.go \
memnode.go \
mount.go \
mountstate.go \
opcode.go \
prefixfs.go \
pathfs.go \
fsops.go \
readonlyfs.go \
request.go \
syscall.go \
typeprint.go \
types.go \
version.go \
GOFILES=$(MANUAL_GOFILES) version.gen.go
include $(GOROOT)/src/Make.pkg
version.gen.go: $(MANUAL_GOFILES)
sh genversion.sh > $@
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
VERSION=\"$(git log -n1 --pretty=format:'%h (%cd)' --date=iso )\" VERSION=\"$(git log -n1 --pretty=format:'%h (%cd)' --date=iso )\"
cat <<EOF cat <<EOF > $1
package fuse package fuse
func init() { func init() {
version = new(string) version = new(string)
......
include $(GOROOT)/src/Make.inc
TARG=github.com/hanwen/go-fuse/unionfs
GOFILES=unionfs.go \
dircache.go \
timedcache.go \
cachingfs.go \
autounion.go \
create.go
DEPS=../fuse
include $(GOROOT)/src/Make.pkg
# Use "gomake install" to build and install this package.
include $(GOROOT)/src/Make.inc
TARG=github.com/hanwen/go-fuse/zipfs
DEPS=../fuse
GOFILES=zipfs.go \
multizip.go \
tarfs.go \
memtree.go
include $(GOROOT)/src/Make.pkg
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment