Saturday, May 24, 2014

cleaning up cdslck files in Cadence.

I created a script that finds all of the cdslck files and deletes them. Even if they are in SVN.
cleanlck.sh
#!/bin/bash
# This script files all cdslck files that Cadence creates and
# removes them.  This includes safe handling of cdslck files that
# have been committed to SVN.
FILES=$(find . -type f -name *cdslck*)
for f in $FILES
do
 #echo "Processing $f"
 svn info $f 1>/dev/null 2>&1
 if [ $? -eq 1 ];then
  rm -f $f
 else
  svn rm $f
 fi
done

No comments:

Post a Comment