Last change
on this file since 33 was
16,
checked in by rock, 16 years ago
|
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Rev | Line | |
---|
[16] | 1 | #!/bin/ksh |
---|
| 2 | # |
---|
| 3 | # $Id: createpatch.sh,v 1.1 2001/01/31 17:18:12 gjertsen Exp $ |
---|
| 4 | # $Log: createpatch.sh,v $ |
---|
| 5 | # Revision 1.1 2001/01/31 17:18:12 gjertsen |
---|
| 6 | # Move patch scripts to tools directory. |
---|
| 7 | # |
---|
| 8 | # Revision 1.3 2000/06/23 22:07:31 eshel |
---|
| 9 | # minor changes to messages |
---|
| 10 | # |
---|
| 11 | # Revision 1.2 2000/06/23 02:44:15 eshel |
---|
| 12 | # use the -u option when creating diff files |
---|
| 13 | # |
---|
| 14 | # Revision 1.1 2000/06/22 23:02:04 eshel |
---|
| 15 | # add createpatch.sh and applypatch.sh to patch linux source .h files |
---|
| 16 | # |
---|
| 17 | # |
---|
| 18 | ## ###################################################################### ## |
---|
| 19 | ## Copyright IBM 1993 ## |
---|
| 20 | ## ###################################################################### ## |
---|
| 21 | |
---|
| 22 | #set nonomatch |
---|
| 23 | #set -x; |
---|
| 24 | ################################################ |
---|
| 25 | if [ $# -lt 2 ] || [ $# -gt 2 ]; then |
---|
| 26 | echo 'usage: createpatch $SRC $FILENAME' |
---|
| 27 | exit 1 |
---|
| 28 | fi |
---|
| 29 | ################################################ |
---|
| 30 | |
---|
| 31 | SRC="$1" |
---|
| 32 | FILENAME="$2" |
---|
| 33 | |
---|
| 34 | ################################################ |
---|
| 35 | |
---|
| 36 | cksum $SRC/$FILENAME > ${FILENAME%.h}.diff |
---|
| 37 | diff -u $SRC/$FILENAME $FILENAME >> ${FILENAME%.h}.diff |
---|
| 38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.