aboutsummaryrefslogtreecommitdiffstats
path: root/extraction/uncapitalize
diff options
context:
space:
mode:
authorxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2006-02-09 14:55:48 +0000
committerxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2006-02-09 14:55:48 +0000
commit2ae43be7b9d4118335c9d2cef6e098f9b9f807fe (patch)
treebbb5e49ccbf7e3614966571acc317f8d318fecad /extraction/uncapitalize
downloadcompcert-2ae43be7b9d4118335c9d2cef6e098f9b9f807fe.tar.gz
compcert-2ae43be7b9d4118335c9d2cef6e098f9b9f807fe.zip
Initial import of compcert
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'extraction/uncapitalize')
-rwxr-xr-xextraction/uncapitalize6
1 files changed, 6 insertions, 0 deletions
diff --git a/extraction/uncapitalize b/extraction/uncapitalize
new file mode 100755
index 00000000..d724b8fd
--- /dev/null
+++ b/extraction/uncapitalize
@@ -0,0 +1,6 @@
+#!/bin/sh
+echo $1 | sed -e 'h
+s/\(.\).*/\1/
+y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
+G
+s/\n.//'