Also remove .pod from the filename

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=33
This commit is contained in:
Ismail Dönmez 2011-06-01 13:32:18 +00:00 committed by Git OBS Bridge
parent 2beafd85a2
commit 4c9508dd5b

View File

@ -237,7 +237,7 @@ mv utils/vim/README utils/vim/README.vim
# Create man pages because cmake buildsystem doesn't do for us
install -m 755 -d %{buildroot}%{_mandir}/man1
for i in docs/CommandGuide/*.pod tools/clang/docs/tools/*.pod; do
page=`echo $i|awk -F"/" '{print $(NF)}'` &&
page=`echo $i|awk -F"/" '{print $(NF)}'|sed s,.pod,,` &&
groff -Tps -man $i > %{buildroot}%{_mandir}/man1/$page.1;
done