mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-11 08:13:06 +00:00
configure: use ./src instead of src
Fix “do "src/doc/t2h.pm" failed, '.' is no longer in @INC; did you mean do "./src/doc/t2h.pm"?” when we have such a symlink.
This commit is contained in:
@@ -4538,7 +4538,7 @@ mkdir -p ffbuild
|
||||
if test -f configure; then
|
||||
source_path=.
|
||||
elif test -f src/configure; then
|
||||
source_path=src
|
||||
source_path=./src
|
||||
else
|
||||
source_path=$(cd $(dirname "$0"); pwd)
|
||||
case "$source_path" in
|
||||
@@ -6377,7 +6377,7 @@ link_name=$(mktemp -u $TMPDIR/name_XXXXXXXX)
|
||||
mkdir "$link_dest"
|
||||
$ln_s "$link_dest" "$link_name"
|
||||
touch "$link_dest/test_file"
|
||||
if [ "$source_path" != "." ] && [ "$source_path" != "src" ] && ([ ! -d src ] || [ -L src ]) && [ -e "$link_name/test_file" ]; then
|
||||
if [ "$source_path" != "." ] && [ "$source_path" != "./src" ] && ([ ! -d src ] || [ -L src ]) && [ -e "$link_name/test_file" ]; then
|
||||
# create link to source path
|
||||
[ -e src ] && rm src
|
||||
$ln_s "$source_path" src
|
||||
|
||||
Reference in New Issue
Block a user