Merged silc_1_1_branch to trunk.
[silc.git] / distdir / autodist-post-process-dist
1 #!/bin/sh
2
3 distribution=$1
4 dist_version=$2
5 package=$3
6 distdir=$4
7
8 # Remove all CVS directories, as some may be left when we put directories
9 # in EXTRA_DIST or 'include' them in distribution.
10
11 if test -d $distdir; then
12   rm -rf `find $distdir -name CVS`
13   rm -rf `find $distdir -name Makefile`
14 fi
15
16 release=$5
17 if test -z $release; then
18   release="0.fc7"
19 fi
20
21 sed -e "s/AUTODIST_VERSION/$dist_version/" -e "s/AUTODIST_RELEASE/$release/" \
22   apps/autodist/autodist.spec.in > $distdir/autodist.spec
23