projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
configure: generate less files, and do that in build dir
[m6w6/ext-psi]
/
m4
/
psi
/
psi_const.m4
diff --git
a/m4/psi/psi_const.m4
b/m4/psi/psi_const.m4
index f0345adfbff8af68c44dfa85968d42121a46a0ed..e0b67a36751726874e0b0f919755157e3592c891 100644
(file)
--- a/
m4/psi/psi_const.m4
+++ b/
m4/psi/psi_const.m4
@@
-1,19
+1,16
@@
# psi_add_str_const(name, value)
# psi_add_str_const(name, value)
-# Add a pre-defined string constant to $PSI_CONSTS
+# Add a pre-defined string constant to $PSI_CONSTS
_H
psi_add_str_const() {
psi_add_str_const() {
- grep -Fq "\"psi\\\\$1\"" $PSI_CONSTS \
- || cat >>$PSI_CONSTS <<EOF
- {PSI_T_STRING, "string", "psi\\\\$1", $2, PSI_T_QUOTED_STRING},
-EOF
+ PSI_CONSTS="$PSI_CONSTS
+ {PSI_T_STRING, \"string\", \"psi\\\\$1\", $2, PSI_T_QUOTED_STRING},"
}
# psi_add_int_const(name, value)
}
# psi_add_int_const(name, value)
-# Add a pre-defined int constant to $PSI_CONSTS
+# Add a pre-defined int constant to $PSI_CONSTS
_H
psi_add_int_const() {
psi_add_int_const() {
- grep -Fq "\"psi\\\\$1\"" $PSI_CONSTS \
- || cat >>$PSI_CONSTS <<EOF
- {PSI_T_INT, "int", "psi\\\\$1", "$2", PSI_T_NUMBER},
-EOF
+ PSI_CONSTS="$PSI_CONSTS
+ {PSI_T_INT, \"int\", \"psi\\\\$1\", \"$2\", PSI_T_NUMBER},
+"
}
dnl PSI_CONST(const name, type)
}
dnl PSI_CONST(const name, type)