Skip to content
Snippets Groups Projects
Select Git revision
  • ed5693fa07b1e0b56c868f79d44fe39a2e744361
  • master default protected
  • 3.0
  • develop
  • revert-2069-tripleVersion
  • 3.1
  • rest-protocol
  • feat/remoting_rocketmq
  • dapr-support
  • 1.5
  • 1.4
  • 1.3
  • 1.2
  • 1.1
  • v3.0.3-rc2
  • v3.0.3-rc1
  • v3.0.2
  • v1.5.8
  • v1.5.9-rc1
  • v3.0.1
  • v1.5.8-rc1
  • v3.0.0
  • v3.0.0-rc4-1
  • v3.0.0-rc4
  • v3.0.0-rc3
  • v1.5.7
  • v1.5.7-rc2
  • v3.0.0-rc2
  • remove
  • v1.5.7-rc1
  • v3.0.0-rc1
  • v1.5.7-rc1-tmp
  • 1.5.6
  • v1.5.6
34 results

service_name_mapping.go

Blame
  • lld-version.sh 519 B
    #!/bin/sh
    # SPDX-License-Identifier: GPL-2.0
    #
    # Usage: $ ./scripts/lld-version.sh ld.lld
    #
    # Print the linker version of `ld.lld' in a 5 or 6-digit form
    # such as `100001' for ld.lld 10.0.1 etc.
    
    linker_string="$($* --version)"
    
    if ! ( echo $linker_string | grep -q LLD ); then
    	echo 0
    	exit 1
    fi
    
    VERSION=$(echo $linker_string | cut -d ' ' -f 2)
    MAJOR=$(echo $VERSION | cut -d . -f 1)
    MINOR=$(echo $VERSION | cut -d . -f 2)
    PATCHLEVEL=$(echo $VERSION | cut -d . -f 3)
    printf "%d%02d%02d\\n" $MAJOR $MINOR $PATCHLEVEL