aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2006-09-15 22:45:40 +0000
committerLev Walkin <vlm@lionet.info>2006-09-15 22:45:40 +0000
commit444e739db842a68b1e76db58e5f1a775d94d7955 (patch)
tree0002708ba845d53ca55895449c0142c7170afbba /examples
parent3f6afc1e6ac7cada736f2f9a9910f7c3c087c1b4 (diff)
translate the PDU to a proper alphabet
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/sample.makefile.regen7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/sample.makefile.regen b/examples/sample.makefile.regen
index 0e28ab6a..8c8be630 100755
--- a/examples/sample.makefile.regen
+++ b/examples/sample.makefile.regen
@@ -4,10 +4,11 @@ if [ -z "$ASN1PDU" \
-o -z "$ASN1MODULES" \
-o -z "$PROGNAME" \
]; then
- echo "ASN1PDU=\"$ASN1PDU\""
+ echo "ASN1CMDOPTS=\"$ASN1CMDOPTS\""
echo "ASN1MODULES=\"$ASN1MODULES\""
+ echo "ASN1PDU=\"$ASN1PDU\""
echo "PROGNAME=\"$PROGNAME\""
- echo "ASN1PDU, ASN1MODULES, and PROGNAME must be set"
+ echo "ASN1PDU, ASN1MODULES, and PROGNAME are mandatory"
exit
fi
@@ -18,6 +19,8 @@ if [ ! -f Makefile.am.sample ]; then
exit 1
fi
+ASN1PDU=`echo "$ASN1PDU" | tr - _`
+
set -x
cat Makefile.am.sample \
| sed -e "s/^CFLAGS.*/CFLAGS += -I. -DHAVE_CONFIG_H -DPDU=${ASN1PDU}/" \