Add generate help for memstore/b generation
This commit is contained in:
parent
a96f2ef6f3
commit
59ce5e5a58
2 changed files with 45 additions and 0 deletions
28
graph/memstore/b/Makefile
Normal file
28
graph/memstore/b/Makefile
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
# Copyright 2014 The Cayley Authors. All rights reserved.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
.PHONY: specify
|
||||||
|
|
||||||
|
# Do not commit changes to this line unless you are satisfied
|
||||||
|
# that the github.com/cznic/b tests AND the cayley integration
|
||||||
|
# tests pass with the new sha.
|
||||||
|
pinned=82d9e96a4503a42315b0fdf5201314302beafe06
|
||||||
|
|
||||||
|
specify:
|
||||||
|
rm -rf b
|
||||||
|
git clone https://github.com/cznic/b
|
||||||
|
cd b && git checkout $(pinned)
|
||||||
|
go test ./b
|
||||||
|
@sed -e 's|interface{}[^{]*/\*K\*/|int64|g' -e 's|interface{}[^{]*/\*V\*/|struct{}|g' b/btree.go >keys.go
|
||||||
|
rm -rf b
|
||||||
17
graph/memstore/b/gen.go
Normal file
17
graph/memstore/b/gen.go
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
// Copyright 2014 The Cayley Authors. All rights reserved.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:generate make specify
|
||||||
|
|
||||||
|
package b
|
||||||
Loading…
Add table
Add a link
Reference in a new issue