Skip to content

Commit

Permalink
Update git_ignore_case.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ReyarB committed Dec 6, 2023
1 parent b5d3815 commit c4ebede
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions git_ignore_case.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@

set -e

#forms, classes and modules
for file in $(git status --porcelain | grep -E "^.{1}M" | grep -E -v "^R" | cut -c 4-| grep -e "\.frm" -e "\.bas" -e "\.cls" -e "\.Dsr"); do
ORIGFILE=$(mktemp)
PATCHFILE=$(mktemp)
git cat-file -p :$file > $ORIGFILE
diff -i --strip-trailing-cr $ORIGFILE $file > $PATCHFILE || true
patch -s $ORIGFILE < $PATCHFILE
cp $ORIGFILE $file
rm $ORIGFILE $PATCHFILE
unix2dos --quiet $file
# forms, classes, and modules
for file in $(git status --porcelain | grep -E "^.{1}M" | grep -E -v "^R" | cut -c 4- | grep -i -e "\.frm" -e "\.bas" -e "\.cls" -e "\.Dsr" -e "\.p" -e "\.u" -e "\.m"); do
ORIGFILE=$(mktemp)
PATCHFILE=$(mktemp)
git cat-file -p :$file > $ORIGFILE
diff -i --strip-trailing-cr $ORIGFILE $file > $PATCHFILE || true
patch -s $ORIGFILE < $PATCHFILE
cp $ORIGFILE $file
rm $ORIGFILE $PATCHFILE
unix2dos --quiet $file
done



#projects
for file in $(git status --porcelain | cut -c 4-| grep -e "\.vbp$"); do
echo $file
Expand Down

0 comments on commit c4ebede

Please sign in to comment.