projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'ceph-for-5.11-rc2' of git://github.com/ceph/ceph-client
[linux-2.6-microblaze.git]
/
scripts
/
nsdeps
diff --git
a/scripts/nsdeps
b/scripts/nsdeps
index
dab4c1a
..
e8ce2a4
100644
(file)
--- a/
scripts/nsdeps
+++ b/
scripts/nsdeps
@@
-12,11
+12,9
@@
if [ ! -x "$SPATCH" ]; then
exit 1
fi
exit 1
fi
-SPATCH_REQ_VERSION_NUM=$(echo $SPATCH_REQ_VERSION | ${DIR}/scripts/ld-version.sh)
SPATCH_VERSION=$($SPATCH --version | head -1 | awk '{print $3}')
SPATCH_VERSION=$($SPATCH --version | head -1 | awk '{print $3}')
-SPATCH_VERSION_NUM=$(echo $SPATCH_VERSION | ${DIR}/scripts/ld-version.sh)
-if
[ "$SPATCH_VERSION_NUM" -lt "$SPATCH_REQ_VERSION_NUM" ]
; then
+if
! { echo "$SPATCH_REQ_VERSION"; echo "$SPATCH_VERSION"; } | sort -CV
; then
echo "spatch needs to be version $SPATCH_REQ_VERSION or higher"
exit 1
fi
echo "spatch needs to be version $SPATCH_REQ_VERSION or higher"
exit 1
fi