File: Diff.sh

package info (click to toggle)
memopanel 7.6-7
  • links: PTS
  • area: main
  • in suites: woody
  • size: 364 kB
  • ctags: 419
  • sloc: ansic: 2,360; sh: 110; makefile: 79
file content (10 lines) | stat: -rwxr-xr-x 291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# toshiaki kanosue 2000/04/01
NAM=memopanel
NAM2=$NAM.c
DIR1=`pwd`
OLDVER=`basename $DIR1|awk 'BEGIN{FS="-"}{printf("%1.1f",(($2*10)-1)/10)}'`
NEWVER=`basename $DIR1|awk 'BEGIN{FS="-"}{print $2}'`
diff -c ../$NAM-$OLDVER/$NAM2 $NAM2 > $NAM2-$NEWVER.patch
vim $NAM2-$NEWVER.patch
#