SC2231: Quote expansions in this for loop glob to prevent wordsplitting.
SC2086: Double quote to prevent globbing and word splitting.
Signed-off-by: Ben Crocker <bcrocker@redhat.com>
The update_scripts.sh script doesn't correctly strip the suffix from the
end of the pathname, but will substitute for it anywhere in the path. The
pattern really ought to have been /[.]$TARGET$//.
Fix this by using a special shell expansion to do it instead of invoking a
sed pipeline.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Jeremy Cline <jcline@redhat.com>
Moving them clobbers them in the dist-git repository. People using the
dist-git to rebuild the SRPM might "fedpkg prep" and then "fedpkg local"
(or similar) which fails because the files got moved.
Cc: jforbes@redhat.com
Signed-off-by: Jeremy Cline <jcline@redhat.com>
Currently, we've been switching between copying Fedora and RHEL files
based on dist-tag. Long term, we want to have a single tree to manage
both Fedora and RHEL. Move towards this by shipping both RHEL and
Fedora files in a single RPM. The choice of which set of files to use
gets decided at build time based on the buildroot.
This series is a big large but it's not easy to break up simply because
making one change requires making all the other changes to avoid breaking
anything. The big changes:
- Move some files and scripts to have the .fedora or .rhel extension
- Tweak some of the config scripts to accont for a fedora/rhel extension
- spec file changes to account for these changes
Signed-off-by: Laura Abbott <labbott@redhat.com>