summaryrefslogtreecommitdiff
path: root/jni/iconv/djgpp/stateless-check.sed
diff options
context:
space:
mode:
authorJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-16 18:49:26 +0900
committerJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-30 00:39:06 +0900
commitfcbf63e62c627deae76c1b8cb8c0876c536ed811 (patch)
tree64cb17de3f41a2b6fef2368028fbd00349946994 /jni/iconv/djgpp/stateless-check.sed
Fresh start
Diffstat (limited to 'jni/iconv/djgpp/stateless-check.sed')
-rw-r--r--jni/iconv/djgpp/stateless-check.sed23
1 files changed, 23 insertions, 0 deletions
diff --git a/jni/iconv/djgpp/stateless-check.sed b/jni/iconv/djgpp/stateless-check.sed
new file mode 100644
index 0000000..ba741df
--- /dev/null
+++ b/jni/iconv/djgpp/stateless-check.sed
@@ -0,0 +1,23 @@
+# Sed script for tests/stateless-check editing.
+
+/charsetf=/ a\
+\
+# For systems with severe filename restrictions\
+# allow for an alternate filename.\
+UNAME=${UNAME-`uname 2>/dev/null`}\
+case X$UNAME in\
+ *-DOS) filename=`echo "$charsetf" | sed "s|ISO-|ISO/|; \\\
+ s|Mac|Mac/|; \\\
+ s|BIG5-HKSCS-|BIG5-HKSCS/|; \\\
+ s|Georgian-|Georgian/|"`\
+ tmp_filename=`echo "$filename" | sed "s|/|/tmp-|"`\
+ tmp_orig_filename=`echo "$filename" | sed "s|/|/tmp-orig-|"` ;;\
+ *) filename="$charsetf"\
+ tmp_filename="$charsetf"\
+ tmp_orig_filename="$charsetf" ;;\
+esac
+s|/"\$charsetf"|/"$filename"|g
+s|tmp-"\$charsetf"|"${srcdir}"/"$tmp_filename"|g
+s|tmp-orig"\$charsetf"|"${srcdir}"/"$tmp_orig_filename"|g
+s|\.INVERSE\.|.INVERSE-|g
+s|\.IRREVERSIBLE\.|.IRREVERSIBLE-|g