Whamcloud - gitweb
LU-3208 tests: Fix typo in replay-single/70b
[fs/lustre-release.git] / lustre / kernel_patches / scripts / rename-patch
1 #!/bin/sh
2 . patchfns >/dev/null || . /usr/lib/patch-scripts/patchfns >/dev/null || { \
3         echo "Impossible to find my library 'patchfns'."
4         echo "Check your install, or go to the right directory"
5         exit 1
6 }
7 OLD=$(stripit $1)
8 NEW=$(stripit $2)
9
10 mv $P/pc/$OLD.pc $P/pc/$NEW.pc
11 mv $P/patches/$OLD.patch $P/patches/$NEW.patch
12 mv $P/txt/$OLD.txt $P/txt/$NEW.txt
13
14 cvs remove $P/pc/$OLD.pc
15 cvs remove $P/patches/$OLD.patch
16 cvs remove $P/txt/$OLD.txt
17
18 cvs add $P/pc/$NEW.pc
19 cvs add $P/patches/$NEW.patch
20 cvs add $P/txt/$NEW.txt