diff options
author | Unai Martinez-Corral <38422348+umarcor@users.noreply.github.com> | 2021-06-26 19:40:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-26 20:40:25 +0200 |
commit | b4d4d9abb322ed0807d2ba0888e73820499aa338 (patch) | |
tree | b980d379e95034ee72aac29955833e1ef0dfd912 /scripts/vendors/shared.sh | |
parent | 111fe055b2f0f3a0225d2553cf739572d691a14d (diff) | |
download | ghdl-b4d4d9abb322ed0807d2ba0888e73820499aa338.tar.gz ghdl-b4d4d9abb322ed0807d2ba0888e73820499aa338.tar.bz2 ghdl-b4d4d9abb322ed0807d2ba0888e73820499aa338.zip |
Codacy issues, Travis cleanup and update ghdl.texi (#1807)
* ghw: fix memleaks reported by codacy
* ghw: printf issues and style (GNU indent)
* testsuite/gna: minor printf issues
* testsuite: fix issues reported by codacy
* scripts/ci-run: clean travis stuff (deprecated)
* scripts: fix issues reported by codacy
* doc/Makefile: add .PHONY
* doc: update ghdl.texi
* testsuite/synth: use synth_tb
Diffstat (limited to 'scripts/vendors/shared.sh')
-rwxr-xr-x | scripts/vendors/shared.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/vendors/shared.sh b/scripts/vendors/shared.sh index 23f99375d..1c620db41 100755 --- a/scripts/vendors/shared.sh +++ b/scripts/vendors/shared.sh @@ -56,9 +56,9 @@ VERBOSE=${VERBOSE:-0} DEBUG=${DEBUG:-0} CONTINUE_ON_ERROR=${CONTINUE_ON_ERROR:-0} -test $VERBOSE -eq 1 && echo -e " Declaring Bash procedures for GHDL..." +test "$VERBOSE" -eq 1 && echo -e " Declaring Bash procedures for GHDL..." -test $DEBUG -eq 1 && echo -e " ${ANSI_DARK_GRAY}procedure SetupDirectories( <Index> <Name> )${ANSI_NOCOLOR}" +test "$DEBUG" -eq 1 && echo -e " ${ANSI_DARK_GRAY}procedure SetupDirectories( <Index> <Name> )${ANSI_NOCOLOR}" # SetupDirectories # -> $Index # -> $Name @@ -108,7 +108,7 @@ SetupDirectories() { fi } -test $DEBUG -eq 1 && echo -e " ${ANSI_DARK_GRAY}procedure CreateDestinationDirectory( undocumented )${ANSI_NOCOLOR}" +test "$DEBUG" -eq 1 && echo -e " ${ANSI_DARK_GRAY}procedure CreateDestinationDirectory( undocumented )${ANSI_NOCOLOR}" # CreateDestinationDirectory # -> undocumented CreateDestinationDirectory() { @@ -123,18 +123,18 @@ CreateDestinationDirectory() { fi } -test $DEBUG -eq 1 && echo -e " ${ANSI_DARK_GRAY}procedure GHDLSetup( <VHDLStandard> )${ANSI_NOCOLOR}" +test "$DEBUG" -eq 1 && echo -e " ${ANSI_DARK_GRAY}procedure GHDLSetup( <VHDLStandard> )${ANSI_NOCOLOR}" # GHDLSetup # -> $VHDLStandard # <= $VHDLVersion # <= $VHDLStandard # <= $VHDLFlavor GHDLSetup() { - if [ $1 -eq 93 ]; then + if [ "$1" -eq 93 ]; then VHDLVersion="v93" VHDLStandard="93c" VHDLFlavor="synopsys" - elif [ $1 -eq 2008 ]; then + elif [ "$1" -eq 2008 ]; then VHDLVersion="v08" VHDLStandard="08" VHDLFlavor="synopsys" @@ -295,9 +295,9 @@ AnalyzeLibrary() { echo -e "${ANSI_YELLOW}Analyzing files into library '$LibraryName'...${ANSI_NOCOLOR}" for File in $Files; do - test $VERBOSE -eq 1 && echo -e "${ANSI_CYAN} Analyzing '$File'${ANSI_NOCOLOR}" + test "$VERBOSE" -eq 1 && echo -e "${ANSI_CYAN} Analyzing '$File'${ANSI_NOCOLOR}" - AnalyzeVHDL $LibraryName "$SourceDirectory" "$LibraryPath" "$File" + AnalyzeVHDL "$LibraryName" "$SourceDirectory" "$LibraryPath" "$File" done } |