From 31a4870218f9e8dbf85dda24442d3e6740ee807d Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Thu, 31 May 2007 17:24:41 +0000 Subject: [PATCH] Added. --- distdir/autodist-post-process-dist | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 distdir/autodist-post-process-dist 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 + -- 2.24.0