This repository was archived by the owner on Apr 22, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ SHELL := /bin/bash
33CLOSURE_COMPILER =java -jar tools/closure-compiler/compiler.jar \
44 --warning_level VERBOSE \
55 --language_in ECMASCRIPT5 \
6- --compilation_level ADVANCED_OPTIMIZATIONS
6+ --compilation_level ADVANCED_OPTIMIZATIONS \
7+ --charset US-ASCII
78# Don't specify --charset=UTF-8. If we do, then non-ascii codepoints
89# that do not correspond to line terminators are converted
910# to UTF-8 sequences instead of being emitted as ASCII.
Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ function command() {
3737 fi
3838}
3939
40+ function cp_if_different() {
41+ if ! [ -e " $2 " ] || diffq " $1 " " $2 " ; then
42+ command cp " $1 " " $2 "
43+ fi
44+ }
45+
4046function mime_for_file() {
4147 local path=" $1 "
4248 case " ${path##* .} " in
@@ -164,7 +170,7 @@ function svn_sync() {
164170 command svn delete " $dest_file "
165171 else
166172 if [ -e " $dest_file " ]; then
167- command cp " $src_file " " $dest_file "
173+ cp_if_different " $src_file " " $dest_file "
168174 else
169175 command cp " $src_file " " $dest_file "
170176 command svn add " $dest_file "
@@ -183,9 +189,9 @@ sync svn_sync "$VERSION_BASE/trunk/styles" \
183189# Cut branch
184190command svn copy " $VERSION_BASE /trunk" " $VERSION_BASE /branches/$RELEASE_LABEL "
185191
186- command cp distrib/prettify.tar.bz2 \
192+ cp_if_different distrib/prettify.tar.bz2 \
187193 " distrib/prettify-$TODAY .tar.bz2"
188- command cp distrib/prettify-small.tar.bz2 \
194+ cp_if_different distrib/prettify-small.tar.bz2 \
189195 " distrib/prettify-small-$TODAY .tar.bz2"
190196
191197# Dump final instructions for caller.
You can’t perform that action at this time.
0 commit comments