mirror of
https://github.com/AppleCommander/applesingle.git
synced 2026-10-22 03:02:27 +00:00
10 lines
439 B
Bash
10 lines
439 B
Bash
# Usage: 'shell env.sh'
|
|
|
|
# Try to accommodate Mac and Linux
|
|
platform=$(uname | tr '[:upper:]' '[:lower:]' | sed 's/darwin/macosx/')
|
|
machine=$(uname -m | tr '[:upper:]' '[:lower:]' | sed 's/arm64/aarch64/' | sed 's/x86_64/amd64/')
|
|
|
|
# These are useful aliases while developing
|
|
alias asu="java -jar ${PWD}/tools/asu/build/libs/applesingle-tools-asu-*.jar"
|
|
alias asun="${PWD}/tools/asu/build/native/nativeCompile/asu-${platform}-${machine}-*"
|