rayzor

annotate util/fixcase @ 2:c273c6f799a4

added fixcase utility to fix the ftp-ed files' case on linux
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 05 Apr 2014 18:31:00 +0300
parents
children 18bdbcbaee81
rev   line source
nuclear@2 1 #!/bin/sh
nuclear@2 2
nuclear@2 3 for i in src/* util/*; do
nuclear@2 4 if echo $i | grep '[A-Z]' >/dev/null; then
nuclear@2 5 fixed=`echo $i | tr '[:upper:]' '[:lower:]'`
nuclear@2 6 echo "\"$i\" -> \"$fixed\""
nuclear@2 7 mv "$i" "$fixed"
nuclear@2 8 fi
nuclear@2 9 done