| 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)' >> $@