2021-01-09 12:31:07 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
2023-03-19 08:19:45 +01:00
|
|
|
go_version=1.20
|
2022-10-05 00:36:46 +02:00
|
|
|
|
2021-01-09 12:31:07 +01:00
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|
2024-03-10 13:31:40 +01:00
|
|
|
|
|
|
|
ynh_go_try_bash_extension() {
|
|
|
|
if [ -x src/configure ]; then
|
|
|
|
src/configure && make -C src || {
|
|
|
|
ynh_print_info --message="Optional bash extension failed to build, but things will still work normally."
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
}
|