Browse Source

sdl2-config.in: use backtics instead of $() for older shells

/bin/sh of Solaris does not understand $()
Anonymous Maarten 9 months ago
parent
commit
256269afb3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      sdl2-config.in

+ 2 - 2
sdl2-config.in

@@ -1,10 +1,10 @@
 #!/bin/sh
 
 # Get the canonical path of the folder containing this script
-bindir=$(cd -P -- "$(dirname -- "$0")" && printf '%s\n' "$(pwd -P)")
+bindir=`cd -P -- "\`dirname -- "$0"\`" && printf '%s\n' "\`pwd -P\`"`
 
 # Calculate the canonical path of the prefix, relative to the folder of this script
-prefix=$(cd -P -- "$bindir/@bin_prefix_relpath@" && printf '%s\n' "$(pwd -P)")
+prefix=`cd -P -- "$bindir/@bin_prefix_relpath@" && printf '%s\n' "\`pwd -P\`"`
 exec_prefix=@exec_prefix@
 exec_prefix_set=no
 libdir=@libdir@