#!/usr/bin/env bash
-# Copyright (C) 1990-2017 Free Software Foundation
+# Copyright (C) 1990-2018 Free Software Foundation
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#
# Support for building net releases
-# Files in devo used in any net release.
+# Files in root used in any net release.
DEVO_SUPPORT="README Makefile.in configure configure.ac \
config.guess config.sub config move-if-change \
COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
Makefile.def Makefile.tpl src-release.sh config.rpath \
ChangeLog MAINTAINERS README-maintainer-mode \
lt~obsolete.m4 ltgcc.m4 depcomp mkdep compile \
- COPYING3 COPYING3.LIB"
+ COPYING3 COPYING3.LIB test-driver ar-lib"
# Files in devo/etc used in any net release.
ETC_SUPPORT="Makefile.in configure configure.in standards.texi \
ver=$2
tool=$3
support_files=$4
+
+ echo "==> Cleaning sources."
+ find \( -name "*.orig" -o -name "*.rej" -o -name "*~" -o -name ".#*" -o -name "*~$bkpat" \) -exec rm {} \;
+
echo "==> Making $package-$ver/"
# Take out texinfo from a few places.
sed -e '/^all\.normal: /s/\all-texinfo //' \