Skip to content

Commit

Permalink
Fix installed version numbers reported by check-dependencies.sh (open…
Browse files Browse the repository at this point in the history
…scad#5190)

Was reporting:

opencsg           1.4.2             1.6.              OK
fontconfig        2.10              2.15.             OK

Now:

opencsg           1.4.2             1.6.0             OK
fontconfig        2.10              2.15.0            OK
  • Loading branch information
cjmayo authored Jun 22, 2024
1 parent b3070a2 commit 9eb0202
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/check-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ opencsg_sysver()
debug opencsg_sysver
if [ ! -e $1/include/opencsg.h ]; then return; fi
ocsgver=`grep -a "define *OPENCSG_VERSION_STRING *[0-9x]*" $1/include/opencsg.h`
ocsgver=`echo $ocsgver | awk '{print $4}' | sed s/'"'//g | sed s/[^1-9.]//g`
ocsgver=`echo $ocsgver | awk '{print $4}' | sed s/'"'//g | sed s/[^0-9.]//g`
opencsg_sysver_result=$ocsgver
}

Expand Down Expand Up @@ -119,7 +119,7 @@ fontconfig_sysver()
if [ ! -e $fcpath ]; then return; fi
fcmajor=`grep "define *FC_MAJOR.*[0-9.]*" $fcpath | awk '{print $3}'`
fcminor=`grep "define *FC_MINOR.*[0-9.]*" $fcpath | awk '{print $3}'`
fcrevison=`grep "define *FC_REVISION.*[0-9.]*" $fcpath | awk '{print $3}'`
fcrevision=`grep "define *FC_REVISION.*[0-9.]*" $fcpath | awk '{print $3}'`
fontconfig_sysver_result="${fcmajor}.${fcminor}.${fcrevision}"
}

Expand Down

0 comments on commit 9eb0202

Please sign in to comment.