File: cvsdiscard.sh

package info (click to toggle)
cvsutils 0.0.20020311-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 248 kB
  • ctags: 34
  • sloc: perl: 686; sh: 354; makefile: 88
file content (9 lines) | stat: -rwxr-xr-x 347 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#! /bin/sh
# This script discards all local changes and reload missing files
echo "cvsdiscard: cleaning up ..."
cvsu --ignore --find --types 'GM' --batch "rm -rf" "$@"
test $? -eq 0 || exit 1
echo "cvsdiscard: refetching missing files ..."
cvsu --ignore --find --types 'U' --batch "cvs update" "$@"
test $? -eq 0 || exit 1
echo "cvsdiscard: done"