1d17dbfd67776c2d2d9eb0d2199c06a998e8d467
[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 sed -e "s/AUTODIST_VERSION/$dist_version/" apps/autodist/autodist.spec.in \
17   > $distdir/autodist.spec
18