From b19bfd5b54233e1455a725dc28b0b14d2ce421cc Mon Sep 17 00:00:00 2001 From: sidneys Date: Tue, 7 Apr 2020 23:33:43 +0200 Subject: [PATCH] feat(macos-compatibility): add support for and documentation of macOS configuration file `convert_config_macos` --- convert.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/convert.sh b/convert.sh index b4dd6cd..d0da0a1 100755 --- a/convert.sh +++ b/convert.sh @@ -6,8 +6,10 @@ if [ -f `dirname $0`/convert_ve_plugin ]; then . `dirname $0`/convert_ve_plugin fi -if [ -f `dirname $0`/convert_config_linux ]; then +if [ -f `dirname $0`/convert_config_linux ] && [ `uname` == "Linux" ]; then . `dirname $0`/convert_config_linux +elif [ -f `dirname $0`/convert_config_macos ] && [ `uname` == "Darwin" ]; then + . `dirname $0`/convert_config_macos else VIRTUAL_EDITIONS_LIST="CoreSingleLanguage Enterprise EnterpriseN Education \ EducationN ProfessionalEducation ProfessionalEducationN \ @@ -266,7 +268,11 @@ if [ "$1" == "-?" -o "$1" == "--help" -o "$1" == "-h" ]; then echo "0 - do not create virtual editions (default)" echo "1 - create virtual edtitions" echo "" + if [ `uname` == "Linux" ]; then echo -e "${infoColor}convert_config_linux file${resetColor}" + elif [ `uname` == "Darwin" ]; then + echo -e "${infoColor}convert_config_macos file${resetColor}" + fi echo "This file can be used to configure some advanced options of this script." echo "It is required to place configuration in the same directory as script." echo ""