translate the PDU to a proper alphabet
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1188 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/examples/sample.makefile.regen b/examples/sample.makefile.regen
index 0e28ab6..8c8be63 100755
--- a/examples/sample.makefile.regen
+++ b/examples/sample.makefile.regen
@@ -4,10 +4,11 @@
-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 @@
exit 1
fi
+ASN1PDU=`echo "$ASN1PDU" | tr - _`
+
set -x
cat Makefile.am.sample \
| sed -e "s/^CFLAGS.*/CFLAGS += -I. -DHAVE_CONFIG_H -DPDU=${ASN1PDU}/" \