Displaying 2 results from an estimated 2 matches for "8fbcef1b".
2019 Jan 25
0
[klibc:update-dash] dash: Change mktokens back to creating token.h itself
...te token.h
targets += token.h
quiet_cmd_mktokens = GEN $@
- cmd_mktokens = sh $< > $@
+ cmd_mktokens = (cd $(obj) && sh $(srctree)/$(src)/mktokens)
$(obj)/token.h: $(src)/mktokens
$(call if_changed,mktokens)
diff --git a/usr/dash/mktokens b/usr/dash/mktokens
index 8fbcef1b..43d76ce1 100644
--- a/usr/dash/mktokens
+++ b/usr/dash/mktokens
@@ -69,7 +69,7 @@ TBEGIN 0 "{"
TEND 1 "}"
!
nl=`wc -l /tmp/ka$$`
-
+exec > token.h
awk '{print "#define " $1 " " NR-1}' /tmp/ka$$
echo '
/* Array indicating which tokens mar...
2020 Mar 28
0
[klibc:update-dash] dash: Change mktokens back to creating token.h itself
...milarly.
* The read built-in implements the -t option like bash
-* mktokens is modified to support out-of-tree builds
* Some header files have header guards added
* Changelog and some manual pages are omitted
* Automatic whitespace fixups
diff --git a/usr/dash/mktokens b/usr/dash/mktokens
index 8fbcef1b..43d76ce1 100644
--- a/usr/dash/mktokens
+++ b/usr/dash/mktokens
@@ -69,7 +69,7 @@ TBEGIN 0 "{"
TEND 1 "}"
!
nl=`wc -l /tmp/ka$$`
-
+exec > token.h
awk '{print "#define " $1 " " NR-1}' /tmp/ka$$
echo '
/* Array indicating which tokens mar...