Added.
authorPekka Riikonen <priikone@silcnet.org>
Thu, 31 May 2007 17:24:41 +0000 (17:24 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 31 May 2007 17:24:41 +0000 (17:24 +0000)
distdir/autodist-post-process-dist [new file with mode: 0644]

diff --git a/distdir/autodist-post-process-dist b/distdir/autodist-post-process-dist
new file mode 100644 (file)
index 0000000..1d17dbf
--- /dev/null
@@ -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
+