Skip to content

Instantly share code, notes, and snippets.

@ktf
Last active December 20, 2015 23:18
Show Gist options
  • Save ktf/6211006 to your computer and use it in GitHub Desktop.
Save ktf/6211006 to your computer and use it in GitHub Desktop.
Clean up CVS keywords
FOO=<your-package-to-cleanup>
git cms-addpkg $FOO
cd $CMSSW_BASE/src
find . -type f -exec sed -i "/[$][Dd]ate:[^$]*[$]/d" {} \;
find . -type f -exec sed -i "/[$][Ii]d:[^$]*[$]/d" {} \;
find . -type f -exec sed -i "/[$][Aa]uthor:[^$]*[$]/d" {} \;
find . -type f -exec sed -i "/[$][Rr]evision[^$]*[$]/d" {} \;
find . -type f -exec sed -i "/[$][Ll]og:[^$]*[$]/d" {} \;
find . -type f -exec sed -i "/[$][Ss]ource:[^$]*[$]/d" {} \;
find . -type f -exec sed -i "/[$][Rr][Cc][Ss][^$]*[$]/d" {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment