Edit

kc3-lang/kc3/macos/configure

Branch :

  • macos/configure
  • #!/bin/sh
    ## kc3
    ## Copyright from 2022 to 2025 kmx.io <contact@kmx.io>
    ##
    ## Permission is hereby granted to use this software granted the above
    ## copyright notice and this permission paragraph are included in all
    ## copies and substantial portions of this software.
    ##
    ## THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
    ## PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
    ## AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
    ## THIS SOFTWARE.
    
    set -e
    
    echo "$PWD/configure"
    
    SRC_TOP="$(dirname "$PWD")"
    
    . "${SRC_TOP}/config.subr"
    
    KC3_VERSION="$(cat "${SRC_TOP}/kc3.version")"
    echo "KC3_VERSION = $KC3_VERSION" >> ${CONFIG_MK}
    
    MACHINE=$(uname -m)
    echo "MACHINE = $MACHINE" >> ${CONFIG_MK}
    
    update_config_mk
    update_config_sh