~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Export the code to transform DH or EC table entries into usable group specs.
[catacomb]
/
genmodes
diff --git
a/genmodes
b/genmodes
index
8ae737b
..
76b82a6
100755
(executable)
--- a/
genmodes
+++ b/
genmodes
@@
-1,5
+1,6
@@
#! /bin/sh
#! /bin/sh
+set -e
baselist=$1
extlist=$2
baselist=$1
extlist=$2
@@
-37,7
+38,7
@@
${J}_DECL($I, $i)
#endif
EOF
#endif
EOF
- if cmp "$i-$j.h" "$i-$j.h.new"
2>/dev/null
; then
+ if cmp "$i-$j.h" "$i-$j.h.new"
>/dev/null 2>&1
; then
rm "$i-$j.h.new"
else
mv "$i-$j.h.new" "$i-$j.h"
rm "$i-$j.h.new"
else
mv "$i-$j.h.new" "$i-$j.h"
@@
-53,7
+54,7
@@
EOF
#include "$j-def.h"
${J}_DEF($I, $i)
EOF
#include "$j-def.h"
${J}_DEF($I, $i)
EOF
- if cmp "$i-$j.c" "$i-$j.c.new"
2>/dev/null
; then
+ if cmp "$i-$j.c" "$i-$j.c.new"
>/dev/null 2>&1
; then
rm "$i-$j.c.new"
else
mv "$i-$j.c.new" "$i-$j.c"
rm "$i-$j.c.new"
else
mv "$i-$j.c.new" "$i-$j.c"