Skip to content

Commit 5c9e4f9

Browse files
committed
Fix manpage install script
1 parent 469df81 commit 5c9e4f9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

install.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@ install_file()
1111
local suffix
1212

1313
for source_file in "${@}"; do
14-
install -m "${attr}" -p -D -t "${buildroot}/${target_dir}" "${source_file}"
14+
local final_dir
15+
final_dir="${target_dir}"
1516
if [ "${target_dir}" = "${mandir}" ]; then
1617
suffix=".gz"
18+
final_dir+="/man${source_file##*.}"
1719
else
1820
suffix=""
1921
fi
20-
echo "${target_dir}/${source_file##*/}${suffix:-}" >> "${metafile}"
22+
install -m "${attr}" -p -D -t "${buildroot}/${final_dir}" "${source_file}"
23+
echo "${final_dir}/${source_file##*/}${suffix:-}" >> "${metafile}"
2124
done
2225
}
2326

2427
install_file 755 "${bindir}" target/bin/jurand
2528
install_file 644 "${rpmmacrodir}" macros/macros.jurand
26-
install_file 644 "${mandir}" target/manpages/*.7
29+
install_file 644 "${mandir}" target/manpages/*

0 commit comments

Comments
 (0)