Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit dac85f6

Browse files
updated cut_release to make it easier to generate download archives
1 parent 4a84ea5 commit dac85f6

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ SHELL := /bin/bash
33
CLOSURE_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.

tools/cut-release.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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+
4046
function 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
184190
command 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.

0 commit comments

Comments
 (0)