Created
August 22, 2013 23:27
-
-
Save pmaccamp/6313966 to your computer and use it in GitHub Desktop.
Script to convert unicode files to text in perforce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Convert all unicode file types to text | |
# Find any files with unicode using grep | |
p4 files -a //... | grep '(.*unicode.*)' > "unicode_listing" | |
while read line | |
do | |
echo "Retyping ${line/\#*/}"; | |
p4 retype -t text "${line/\#*/}"; | |
done < "unicode_listing" | |
rm unicode_listing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment