README: add deprecation notice
[nautilus-actions.git] / maintainer / run-distcheck.sh
blob3244898c41b7073bb74834051fecee7630f5a26b
1 #!/bin/sh
2 # FileManager-Actions
3 # A file-manager extension which offers configurable context menu actions.
5 # Copyright (C) 2005 The GNOME Foundation
6 # Copyright (C) 2006-2008 Frederic Ruaudel and others (see AUTHORS)
7 # Copyright (C) 2009-2015 Pierre Wieser and others (see AUTHORS)
9 # FileManager-Actions is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License as
11 # published by the Free Software Foundation; either version 2 of
12 # the License, or (at your option) any later version.
14 # FileManager-Actions is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with FileManager-Actions; see the file COPYING. If not, see
21 # <http://www.gnu.org/licenses/>.
23 # Authors:
24 # Frederic Ruaudel <grumz@grumz.net>
25 # Rodrigo Moya <rodrigo@gnome-db.org>
26 # Pierre Wieser <pwieser@trychlos.org>
27 # ... and many others (see AUTHORS)
29 maintainer_dir=$(cd ${0%/*}; pwd)
30 top_srcdir="${maintainer_dir%/*}"
32 PkgName=`autoconf --trace 'AC_INIT:$1' "${top_srcdir}/configure.ac"`
33 pkgname=$(echo $PkgName | tr '[[:upper:]]' '[[:lower:]]')
35 # a filemanager-actions-x.y may remain after an aborted make distcheck
36 # such a directory breaks gnome-autogen.sh generation
37 # so clean it here
38 for d in $(find ${top_srcdir} -maxdepth 2 -type d -name "${pkgname}-*"); do
39 echo "> Removing $d"
40 chmod -R u+w $d
41 rm -fr $d
42 done
44 builddir="./_build"
45 installdir="./_install"
47 rm -fr ${builddir}
48 rm -fr ${installdir}
49 find ${top_srcdir}/docs/manual -type f -name '*.html' -o -name '*.pdf' | xargs rm -f
50 find ${top_srcdir}/docs/manual \( -type d -o -type l \) -name 'stylesheet-images' -o -name 'admon' | xargs rm -fr
52 ${maintainer_dir}/run-autogen.sh --enable-docs &&
53 ${maintainer_dir}/check-po.sh -nodummy &&
54 ${maintainer_dir}/check-headers.sh -nodummy -builddir="${builddir}" &&
55 desktop-file-validate ${installdir}/share/applications/fma-config-tool.desktop &&
56 make -C ${builddir} distcheck