Imported Upstream version 3.1.9
[platform/upstream/Imath.git] / docs / fixmanpages.sh
1 #!/bin/bash
2
3 # Fix the names of doxygen-generated man page files:
4 # * Strip "_ Vec" and "_ T _ _" from "Imath_Box_ Vec2_ T _ _.3"
5 # * and rename "Imath_*" to "Imath::*"
6
7 if [ -d $1/man/man3 ]; then
8
9   cd $1/man/man3
10   echo cd $1/man/man3
11   shopt -s nullglob
12   for file in Imath_*.3;
13   do
14     new=`echo $file | sed -e 's/_ T _ _//g' -e 's/_ Vec//g' -e s/_/::/g`
15     echo /bin/mv "$file" $new
16     /bin/mv "$file" $new
17   done
18 fi
19    
20
21