6dd0803866
1) added scripts/shell.req.files and scripts/shell.prov.files. scripts/shell.req.files has new patterns for '/usr/bin/env bash' and '/bin/ash'. 2) adapted scripts/shell.req.in and scripts/shell.prov.in by using ArgvFileAction. Also made them work with empty RPM_BUILD_ROOT. Note: now shell.req produces dependencies from .provides.sh even if the latter is inside RPM_BUILD_ROOT. The reason is that .provides.sh and the script can reside in two different subpackages (and otherwise, rpm will optimize out the dependency). 3) removed corresponding old code from autodeps/linux.req.in and autodeps/linux.prov.in.
18 lines
321 B
Bash
Executable File
18 lines
321 B
Bash
Executable File
#!/bin/sh -efu
|
|
while IFS=$'\t' read -r f t; do
|
|
case "$t" in
|
|
#!/bin/sh
|
|
*"Bourne shell script text"*)
|
|
echo "$f" ;;
|
|
#!/bin/bash
|
|
*"Bourne-Again shell script text"*)
|
|
echo "$f" ;;
|
|
#!/usr/bin/env bash
|
|
*" bash script text"*)
|
|
echo "$f" ;;
|
|
#!/bin/ash
|
|
*" /bin/ash script text"*)
|
|
echo "$f" ;;
|
|
esac
|
|
done
|