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

Use Go tool throughout.

parent dfd827ce
#!/bin/sh
set -eux
rm -f fuse/version.gen.go
sh genversion.sh fuse/version.gen.go
for target in "clean" "" "$@" ; do
for target in "clean" "install" ; do
for d in fuse benchmark zipfs unionfs \
example/hello example/loopback example/zipfs \
example/bulkstat example/multizip example/unionfs \
example/autounionfs ; \
do
gomake -C $d $target
go ${target} go-fuse/${d}
done
done
for d in fuse zipfs unionfs
do
(cd $d && gotest )
(cd $d && go test go-fuse/$d )
done
# TODO - reinstate the benchmark
exit 1
gomake -C benchmark cstatfs
for d in benchmark
do
(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 @@
VERSION=\"$(git log -n1 --pretty=format:'%h (%cd)' --date=iso )\"
cat <<EOF
cat <<EOF > $1
package fuse
func init() {
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