diff options
author | chenss | 2018-09-16 10:13:17 +0800 |
---|---|---|
committer | chenss | 2018-09-16 10:13:17 +0800 |
commit | 080c649930e17d1f3f7e7d8b9fa30bafb6cac055 (patch) | |
tree | faeaba186ab8ec71fa731895607c38fa4618237a /xtensa-lx106-elf-gcc.install | |
download | aur-080c649930e17d1f3f7e7d8b9fa30bafb6cac055.tar.gz |
Init
Diffstat (limited to 'xtensa-lx106-elf-gcc.install')
-rwxr-xr-x | xtensa-lx106-elf-gcc.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/xtensa-lx106-elf-gcc.install b/xtensa-lx106-elf-gcc.install new file mode 100755 index 000000000000..a8c956fa5799 --- /dev/null +++ b/xtensa-lx106-elf-gcc.install @@ -0,0 +1,18 @@ + +post_install() { + echo "To use the toolchain, environment variables have to be set in your shell." + echo "Files setting them for POSIX compatible shells (bash, zsh, ...)" + echo "provided and should be used automatically for shells opened from now on." + echo "To use the toolchain right away, use" + echo " $ source /etc/profile.d/xtensa-lx106-elf-gcc.sh # (for POSIX compatible)" + echo "You may add /opt/xtensa-lx106-elf-gcc/bin to your \$PATH for selected shells." +} + +post_upgrade() { + post_install + + if [[ $(vercmp "$2" "r47-2") -ne 1 && $(vercmp "r47-3" "$1") -ne 1 ]]; then + echo "Note: The provided tools are not added to the \$PATH automatically anymore." + echo " This caused problems with other toolchains using the same executable names." + fi +} |