| 1 | --- update-smart-drivedb.in.orig 2010-03-05 06:56:41.000000000 +0900 |
| 2 | +++ update-smart-drivedb.in 2010-11-16 03:13:50.000000000 +0900 |
| 3 | @@ -40,7 +40,7 @@ |
| 4 | SRCEXPR='http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/$location/smartmontools/drivedb.h?revision=HEAD' |
| 5 | |
| 6 | # Convert version into branch name: 5.41[.X] -> "RELEASE_5_41_DRIVEDB" |
| 7 | -BRANCH="`echo $VERSION | sed -n 's|^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\([^0-9].*\)\?$|RELEASE_\1_\2_DRIVEDB|p'`" |
| 8 | +BRANCH="`echo $VERSION | gsed -n 's|^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\([^0-9].*\)\?$|RELEASE_\1_\2_DRIVEDB|p'`" |
| 9 | |
| 10 | if [ -z "$BRANCH" ]; then |
| 11 | echo "$0: syntax error in version number: $VERSION" >&2; exit 1 |
| 12 | @@ -129,7 +129,7 @@ |
| 13 | # Keep old file if identical, ignore differences in Id string |
| 14 | rm -f "$DEST.lastcheck" |
| 15 | if [ -f "$DEST" ]; then |
| 16 | - if cat "$DEST" | sed 's|\$''Id''[^$]*\$|$''Id''$|' | cmp - "$DEST.new" >/dev/null; then |
| 17 | + if cat "$DEST" | gsed 's|\$''Id''[^$]*\$|$''Id''$|' | cmp - "$DEST.new" >/dev/null; then |
| 18 | rm -f "$DEST.new" |
| 19 | touch "$DEST.lastcheck" |
| 20 | echo "$DEST is already up to date" |