P4 typemaps
Perforce allows you to change how files are stored in the depot. When you get Perforce installed, it attempts to guess what kind of file is added on the fly. While it is OK at finding non-text files, it would be good to set it up so we are sure what file is stored how in perforce.
One could do the p4 typemap and see what is set up so far.
I found it easier to use the p4 typemap -i to load the file types from a file.
So I do this:
cat input.typemap.txt | p4 typemap -i
Sample input file: (note the need to have "TypeMap:" as the first line. Also, each line after needs to start with a tab.)
cat input.typemap.txt
TypeMap:
text /...asp
binary+S /...avi
binary+S /...bmp
binary+S /...btr
text /...cnf
text /...css
binary /...doc
binary /...dot
binary+w /...exp
binary+S /...gif
text /...htm
text /...html
binary+S /...ico
text /...inc
text+w /...ini
binary+S /...jpg
text /...js
binary+w /...lib
text+w /...log
binary+S /...mpg
binary /...pdf
text+w /...pdm
binary /...ppt
binary+w /...xls
binary+S /...zip
binary+S /...gz
binary+S /...tar
