[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pre-commit converter
From: |
rad_google |
Subject: |
pre-commit converter |
Date: |
7 Mar 2006 14:36:40 -0800 |
User-agent: |
G2/0.2 |
I would like to convert any DOS files to unix format prior to commit.
It is annoying when someone commits from a windows machine with DOS
line endings, but I am in no position to enforce unix format checkins.
How can I modify the file to be commited? Would this work:
#!/bin/sh
for file in $*
do
tr -d '\15\32' < $file > $file.unix
mv $file $file.DOS
mv $file.unix $file
done
Thanks.
Matyas
- pre-commit converter,
rad_google <=
- Re: pre-commit converter, Pierre Asselin, 2006/03/07
- Re: pre-commit converter, rad_google, 2006/03/08
- Re: pre-commit converter, Jim Hyslop, 2006/03/08
- Message not available
- Re: pre-commit converter, rad_google, 2006/03/08
- Re: pre-commit converter, Jim Hyslop, 2006/03/08
- Re: pre-commit converter, Jim Hyslop, 2006/03/08
- Message not available
- Re: pre-commit converter, rad_google, 2006/03/08
- Re: pre-commit converter, Pierre Asselin, 2006/03/08
- Re: pre-commit converter, Pierre Asselin, 2006/03/08
- Re: pre-commit converter, Jim Hyslop, 2006/03/08