mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
add vendor
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if [ ! -d specifications ]; then
|
||||
git clone -b bson git@github.com:jyemin/specifications
|
||||
fi
|
||||
|
||||
TESTFILE="../specdata_test.go"
|
||||
|
||||
cat <<END > $TESTFILE
|
||||
package bson_test
|
||||
|
||||
var specTests = []string{
|
||||
END
|
||||
|
||||
for file in specifications/source/bson/tests/*.yml; do
|
||||
(
|
||||
echo '`'
|
||||
cat $file
|
||||
echo -n '`,'
|
||||
) >> $TESTFILE
|
||||
done
|
||||
|
||||
echo '}' >> $TESTFILE
|
||||
|
||||
gofmt -w $TESTFILE
|
||||
Reference in New Issue
Block a user