hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

platform (257B)


      1 #!/bin/sh
      2 # Prints the default build tags for the host
      3 case $(uname) in
      4 	Linux)
      5 		platform="linux"
      6 		;;
      7 	FreeBSD)
      8 		platform="freebsd"
      9 		;;
     10 	*)
     11 		printf "Warning: unknown target %s\n" "$(uname)" >&2
     12 		platform="unknown"
     13 		;;
     14 esac
     15 
     16 printf "%s\n" "$platform"