Skip to content

Commit

Permalink
Improve comments about embedding.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjoern Rabenstein committed Feb 2, 2015
1 parent 3012de7 commit f568bbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions utility/embed-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ do
echo "\"$(basename ${dir})\": {"

# Do not embed map files and the non-minified bootstrap files.
# TODO(beorn7): There should be a better solution than hardcoding the
# exclusion here. We might want to switch to a less makeshift way of
# embedding files into the binary anyway...
find . -type f \! -name \*.map \! -name bootstrap.js \! -name bootstrap-theme.css \! -name bootstrap.css | while read file
do
name=$(echo "${file}"|sed 's|\.\/||')
Expand Down
3 changes: 2 additions & 1 deletion web/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ all: blob/files.go

SUFFIXES:

# Do not embed map files and the non-minified bootstrap files.
blob/files.go: $(shell find templates/ static/ -type f)
# Note that embed-static.sh excludes map files and the
# non-minified bootstrap files.
../utility/embed-static.sh static templates | $(GOFMT) > $@

clean:
Expand Down

0 comments on commit f568bbc

Please sign in to comment.