X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=distdir%2Fautodist-post-process-dist;fp=distdir%2Fautodist-post-process-dist;h=1d17dbfd67776c2d2d9eb0d2199c06a998e8d467;hb=31a4870218f9e8dbf85dda24442d3e6740ee807d;hp=0000000000000000000000000000000000000000;hpb=f7ed25c5a17abfc6302a75caa2d1f91f3ef888fa;p=silc.git diff --git a/distdir/autodist-post-process-dist b/distdir/autodist-post-process-dist new file mode 100644 index 00000000..1d17dbfd --- /dev/null +++ b/distdir/autodist-post-process-dist @@ -0,0 +1,18 @@ +#!/bin/sh + +distribution=$1 +dist_version=$2 +package=$3 +distdir=$4 + +# Remove all CVS directories, as some may be left when we put directories +# in EXTRA_DIST or 'include' them in distribution. + +if test -d $distdir; then + rm -rf `find $distdir -name CVS` + rm -rf `find $distdir -name Makefile` +fi + +sed -e "s/AUTODIST_VERSION/$dist_version/" apps/autodist/autodist.spec.in \ + > $distdir/autodist.spec +