Fix headers to support single compilation (but io-gconf/)
[nautilus-actions.git] / maintainer / run-distcheck.sh
blobb9ce1642dcadd842d1eb6a9e9eb947c052ed3b2c
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 if [ ! -f configure.ac ]; then
30 echo "> This script is only meant to be run from the top source directory." 1>&2
31 exit 1
34 maintainer_dir=$(cd ${0%/*}; pwd)
35 top_srcdir="${maintainer_dir%/*}"
37 builddir="${top_srcdir}/_build"
38 installdir="${top_srcdir}/_install"
40 # a filemanager-actions-x.y may remain after an aborted make distcheck
41 # such a directory breaks gnome-autogen.sh generation
42 # so clean it here
43 for d in $(find ${top_srcdir} -maxdepth 2 -type d -name 'filemanager-actions-*'); do
44 chmod -R u+w $d
45 rm -fr $d
46 done
48 rm -fr ${builddir}
49 rm -fr ${installdir}
50 find ${top_srcdir}/docs/user-manual -type f -name '*.html' -o -name '*.pdf' | xargs rm -f
51 find ${top_srcdir}/docs/user-manual \( -type d -o -type l \) -name 'stylesheet-images' -o -name 'admon' | xargs rm -fr
53 ${maintainer_dir}/run-autogen.sh --enable-deprecated --enable-gtk-doc --enable-html-manuals &&
54 ${maintainer_dir}/check-po.sh -nodummy &&
55 ${maintainer_dir}/check-headers.sh -nodummy -builddir="${builddir}" &&
56 desktop-file-validate ${installdir}/share/applications/fma-ui.desktop &&
57 make -C ${builddir} distcheck