Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: config.sh.in: quote variables and fix shellcheck issues #5284

Merged
merged 2 commits into from
Aug 11, 2022

Conversation

kmk3
Copy link
Collaborator

@kmk3 kmk3 commented Aug 1, 2022

config.sh.in: quote all variables

Output variables in general may contain values with spaces in them.
Example: CC=gcc -foo.


config.sh.in: fix all issues reported by shellcheck

Fix the following error and warnings:

$ shellcheck --version | grep ^version:
version: 0.8.0
$ shellcheck config.sh.in

In config.sh.in line 1:
# @configure_input@
^-- SC2148 (error): Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.

In config.sh.in line 3:
NAME=@PACKAGE_NAME@
^--^ SC2034 (warning): NAME appears unused. Verify use (or export if used externally).

In config.sh.in line 4:
VERSION=@PACKAGE_VERSION@
^-----^ SC2034 (warning): VERSION appears unused. Verify use (or export if used externally).

For more information:
  https://www.shellcheck.net/wiki/SC2148 -- Tips depend on target shell and y...
  https://www.shellcheck.net/wiki/SC2034 -- NAME appears unused. Verify use (...

Relates to #5140.

Kind of relates to #5251.

Output variables in general may contain values with spaces in them.
Example: `CC=gcc -foo`.

Relates to netblue30#5140.
Fix the following error and warnings:

    $ shellcheck --version | grep ^version:
    version: 0.8.0
    $ shellcheck config.sh.in

    In config.sh.in line 1:
    # @configure_input@
    ^-- SC2148 (error): Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.

    In config.sh.in line 3:
    NAME=@PACKAGE_NAME@
    ^--^ SC2034 (warning): NAME appears unused. Verify use (or export if used externally).

    In config.sh.in line 4:
    VERSION=@PACKAGE_VERSION@
    ^-----^ SC2034 (warning): VERSION appears unused. Verify use (or export if used externally).

    For more information:
      https://www.shellcheck.net/wiki/SC2148 -- Tips depend on target shell and y...
      https://www.shellcheck.net/wiki/SC2034 -- NAME appears unused. Verify use (...

Relates to netblue30#5140.
@kmk3 kmk3 added this to In progress in Release 0.9.72 via automation Aug 1, 2022
@kmk3 kmk3 merged commit 06c4359 into netblue30:master Aug 11, 2022
@kmk3 kmk3 deleted the build-config-sh-fixes branch August 11, 2022 21:17
kmk3 added a commit that referenced this pull request Aug 12, 2022
@kmk3 kmk3 moved this from In progress to Done (on RELNOTES) in Release 0.9.72 Aug 12, 2022
kmk3 added a commit that referenced this pull request Aug 18, 2022
Which were removed on commit d4323ae ("merges", 2022-08-14).

Relates to #5283 #5284.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Release 0.9.72
  
Done (on RELNOTES)
Development

Successfully merging this pull request may close these issues.

None yet

1 participant