Imported upstream version 1.5
[manpages-zh.git] / utils / release-manpages
blobd92f52236519bca1a19655a2cafb1712d1bdd747
1 #!/bin/sh
2 manpages=man-pages-zh_CN
3 release=$manpages-1.5
4 rm -rf $manpages*
5 rm -rf finally
6 cvs -d:pserver:anonymous@sf.linuxforum.net:/cvsroot/cmpp export -r HEAD $manpages
7 mv $manpages $release
8 count=`wc -l $release/DOCS/00TRANSLATED`
9 tar zcf $release.tar.gz $release
10 rpmbuild -ta $release.tar.gz
11 mkdir finally
12 mv /usr/src/redhat/SRPMS/$manpages*.src.rpm finally/
13 mv /usr/src/redhat/RPMS/noarch/$manpages*.rpm finally/
14 mv $release.tar.gz finally/
15 rm -rf $manpages*
16 echo $count