Skip to content

Instantly share code, notes, and snippets.

@hmayer
Last active April 30, 2020 18:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hmayer/d7a54f82df4319514532d18a8788204a to your computer and use it in GitHub Desktop.
Save hmayer/d7a54f82df4319514532d18a8788204a to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
if [ $# -eq 0 ]; then
echo "Vou trocar o CVS Root pelo quê? Manda o argumento tchê!"
exit 1
fi
CVSROOT=$1
echo -en "Atualizando CVSROOT do reposisitório para ${CVSROOT} "
find . -wholename "*CVS/Root" -print | while read ROOTFILE; do
echo ${CVSROOT} > "${ROOTFILE}" #set new cvsroot
done
echo -en "[ OK ]\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment