#!/bin/bash# This is really just some notes on how I updated .gitignore (at top level)# using the previously listed things in the svn:ignore properties.# # we'll first get a list of all directories in svn.# svn list -R > listing# grep '/$' listing > dirs# for dir in $(cat dirs); do# for prop in $(svn propget svn:ignore $dir); do# echo $dir$prop# done# done > bar# # Then I edited the file after I noticed some things that shouldn't have been in .svignore.# for x in $(cat bar); do if ! $(grep "^/$x$" .gitignore >/dev/null); then echo $x; fi; done# # this is all I got.# egs/callhome_egyptian/s5/mfcc# egs/callhome_egyptian/s5/data# egs/callhome_egyptian/s5/exp/egs# egs/callhome_egyptian/s5/exp/src# the rest of this file updates the .gitignore with the names of new binariessvn list -R> listingfor f in$(grep'.cc$' listing);dobinary=$(echo$f | sed s:.cc$::)if[-f$binary]&&!grep"^/$binary$" .gitignore >/dev/null;thenecho /$binaryfidone> new_binariescat new_binaries >> .gitignore