Skip to content

Commit

Permalink
update_unicode.sh: set UNICODE_DIR only once
Browse files Browse the repository at this point in the history
The value is the same on both uniset invocations, so "Don't Repeat
Yourself" applies.

Since this is done as the last command in the sequence, there's no
need to unset UNICODE_DIR at the end.

Signed-off-by: Beat Bolli <dev+git@drbeat.li>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Beat Bolli authored and Junio C Hamano committed Dec 22, 2014
1 parent 2aa590c commit 69d84a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions update_unicode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ fi &&
fi &&
make
) && {
UNICODE_DIR=. && export UNICODE_DIR &&
echo "static const struct interval zero_width[] = {" &&
UNICODE_DIR=. ./uniset/uniset --32 cat:Me,Mn,Cf + U+1160..U+11FF - U+00AD |
./uniset/uniset --32 cat:Me,Mn,Cf + U+1160..U+11FF - U+00AD |
grep -v plane &&
echo "};" &&
echo "static const struct interval double_width[] = {" &&
UNICODE_DIR=. ./uniset/uniset --32 eaw:F,W &&
./uniset/uniset --32 eaw:F,W &&
echo "};"
} >$UNICODEWIDTH_H
)

0 comments on commit 69d84a3

Please sign in to comment.