rpm-build/scripts/shell.req.files
Alexey Tourbin 6dd0803866 adapted shell.req and shell.prov
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.
2007-03-11 15:00:23 +03:00

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