[vte/wip/inigomartinez/meson: 393/394] build: Use input file as parameter in box drawing script
- From: Iñigo Martínez <inigomartinez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/inigomartinez/meson: 393/394] build: Use input file as parameter in box drawing script
- Date: Sun, 18 Nov 2018 22:57:44 +0000 (UTC)
commit 3df8290b4c90d3794ed00cff7f284fbeb6b0ef72
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Mon Jul 3 09:36:14 2017 +0200
build: Use input file as parameter in box drawing script
Changed box_drawing_generate.sh script to read from a file passed as
parameter explicitly instead of using input redirection.
src/Makefile.am | 2 +-
src/box_drawing_generate.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index aba51322..0d827b30 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -165,7 +165,7 @@ EXTRA_DIST += box_drawing.txt box_drawing_generate.sh
CLEANFILES += $(BUILT_SOURCES) stamp-vtetypebuiltins.h
box_drawing.h: box_drawing.txt box_drawing_generate.sh
- $(AM_V_GEN) $(srcdir)/box_drawing_generate.sh < $< > $@
+ $(AM_V_GEN) $(srcdir)/box_drawing_generate.sh $< > $@
marshal.cc: marshal.list
$(AM_V_GEN) echo '#include "marshal.h"' > $@ \
diff --git a/src/box_drawing_generate.sh b/src/box_drawing_generate.sh
index 058ae6be..6451c4a5 100755
--- a/src/box_drawing_generate.sh
+++ b/src/box_drawing_generate.sh
@@ -61,7 +61,7 @@ while [ $pos -lt $((0x2580)) ]; do
done
echo
pos=$((pos+1))
-done
+done < "$1"
cat <<"END"
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]