Remove echo -e because it's not available on Travis.
Instead, files.go gets piped through gofmt.
This commit is contained in:
parent
aed8270a97
commit
a985a723a1
2
Makefile
2
Makefile
|
@ -19,7 +19,7 @@ test: build
|
||||||
go test ./...
|
go test ./...
|
||||||
|
|
||||||
build:
|
build:
|
||||||
./utility/embed-static.sh web/static web/templates > web/blob/files.go
|
./utility/embed-static.sh web/static web/templates | gofmt > web/blob/files.go
|
||||||
cat web/blob/files.go
|
cat web/blob/files.go
|
||||||
$(MAKE) -C model
|
$(MAKE) -C model
|
||||||
go build ./...
|
go build ./...
|
||||||
|
|
|
@ -10,17 +10,17 @@ CDIR=`pwd`
|
||||||
for dir in $@
|
for dir in $@
|
||||||
do
|
do
|
||||||
cd "$dir"
|
cd "$dir"
|
||||||
echo -e "\t\"`basename $dir`\": {"
|
echo "\"`basename $dir`\": {"
|
||||||
|
|
||||||
find -type f | while read file
|
find -type f | while read file
|
||||||
do
|
do
|
||||||
name=`echo "$file"|sed 's|\.\/||'`
|
name=`echo "$file"|sed 's|\.\/||'`
|
||||||
echo -e "\t\t\"$name\": {"
|
echo "\"$name\": {"
|
||||||
gzip -9 -c "$file" | xxd -p |sed 's/\(..\)/0x\1, /g'
|
gzip -9 -c "$file" | xxd -p |sed 's/\(..\)/0x\1, /g'
|
||||||
echo -e "\t\t},"
|
echo "},"
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
echo -e "\t},"
|
echo "},"
|
||||||
cd $CDIR
|
cd $CDIR
|
||||||
done
|
done
|
||||||
echo '}'
|
echo '}'
|
||||||
|
|
Loading…
Reference in New Issue