Ticket #27330: update-smart-drivedb-sed.patch
File update-smart-drivedb-sed.patch, 756 bytes (added by Christian.Franke@…, 14 years ago) |
---|
-
update-smart-drivedb.in
40 40 SRCEXPR='http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/$location/smartmontools/drivedb.h?revision=HEAD' 41 41 42 42 # Convert version into branch name: 5.41[.X] -> "RELEASE_5_41_DRIVEDB" 43 BRANCH="`echo $VERSION | sed -n 's|^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\([^0-9].*\)\?$|RELEASE_\1_\2_DRIVEDB|p'`" 43 BRANCH="`echo $VERSION | sed 's|^\([0-9]*\.[0-9]*\)\..*$|\1|' \ 44 | sed -n 's|^\([0-9][0-9]*\)\.\([0-9][0-9]*\)$|RELEASE_\1_\2_DRIVEDB|p'`" 44 45 45 46 if [ -z "$BRANCH" ]; then 46 47 echo "$0: syntax error in version number: $VERSION" >&2; exit 1