projects
/
fontstandard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a45a0ac
)
Simplify file reading.
author
Joe Wreschnig
<joe.wreschnig@gmail.com>
Mon, 6 Oct 2014 09:37:47 +0000
(11:37 +0200)
committer
Joe Wreschnig
<joe.wreschnig@gmail.com>
Mon, 6 Oct 2014 09:37:47 +0000
(11:37 +0200)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
2df645e
..
1952f50
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-42,11
+42,10
@@
$(VARIABLES):
| sed -E 's/.*$(CODEPOINT).*/SelectMore(0u\1);/g' >> $@
echo 'DetachAndRemoveGlyphs();' >> $@
| sed -E 's/.*$(CODEPOINT).*/SelectMore(0u\1);/g' >> $@
echo 'DetachAndRemoveGlyphs();' >> $@
- grep -v '^#' $*.remap.txt | while read line; do \
- a=( $$line ); \
- (grep -E -m 1 "@fa-var-$${a[1]}:" $(VARIABLES) \
- || echo "$${a[1]} not found." >&2) \
- | sed -E 's/.*$(CODEPOINT).*/Select(0u\1); CopyReference(); Select(0u'$${a[0]}'); Paste();/g' >> $@ \
+ grep -v '^#' $*.remap.txt | while read -r dst src rest; do \
+ (grep -E -m 1 "@fa-var-$${src}:" $(VARIABLES) \
+ || echo "$${src} not found." >&2) \
+ | sed -E 's/.*$(CODEPOINT).*/Select(0u\1); CopyReference(); Select(0u'$${dst}'); Paste();/g' >> $@ \
; done
echo 'Generate($$2)' >> $@
; done
echo 'Generate($$2)' >> $@