Skip to content

Commit

Permalink
refine NM_PLATFORM
Browse files Browse the repository at this point in the history
  • Loading branch information
junjiemars committed Jan 10, 2025
1 parent a7676c2 commit 7ab0706
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions auto/configure
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ fi


if [ -z "$NM_PLATFORM" ]; then
echo "checking for OS"
printf "checking for OS\n"

NM_SYSTEM=`uname -s 2>/dev/null`
NM_RELEASE=`uname -r 2>/dev/null`
NM_MACHINE=`uname -m 2>/dev/null`
NM_SYSTEM=$(uname -s 2>/dev/null)
NM_RELEASE=$(uname -r 2>/dev/null)
NM_MACHINE=$(uname -m 2>/dev/null)

echo " + $NM_SYSTEM $NM_RELEASE $NM_MACHINE"
printf " + ${NM_SYSTEM} ${NM_RELEASE} ${NM_MACHINE}\n"

case $NM_SYSTEM in
MSYS_NT-*)
Expand All @@ -59,10 +59,10 @@ if [ -z "$NM_PLATFORM" ]; then
;;
esac

NM_PLATFORM="$NM_SYSTEM-$NM_RELEASE-$NM_MACHINE";
NM_PLATFORM="${NM_SYSTEM}-${NM_RELEASE}-${NM_MACHINE}";

else
echo "building for $NM_PLATFORM"
printf "building for ${NM_PLATFORM}\n"
NM_SYSTEM=$NM_PLATFORM
fi

Expand Down

0 comments on commit 7ab0706

Please sign in to comment.