File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2427install_file 755 " ${bindir} " target/bin/jurand
2528install_file 644 " ${rpmmacrodir} " macros/macros.jurand
26- install_file 644 " ${mandir} " target/manpages/* .7
29+ install_file 644 " ${mandir} " target/manpages/*
You can’t perform that action at this time.
0 commit comments