X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=scripts%2Fnsdeps;h=e8ce2a4d704abc37ff80fd4515259ca449e83b7b;hb=f6e1ea19649216156576aeafa784e3b4cee45549;hp=dab4c1a0e27dd0517faa736f17424c356b153ddf;hpb=fded09198826b2998242ed2e1a16527849884d3f;p=linux-2.6-microblaze.git diff --git a/scripts/nsdeps b/scripts/nsdeps index dab4c1a0e27d..e8ce2a4d704a 100644 --- a/scripts/nsdeps +++ b/scripts/nsdeps @@ -12,11 +12,9 @@ if [ ! -x "$SPATCH" ]; then 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_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