1#!/bin/sh 2 3# Script to execute to initialize diff-pdf build system after checking out 4# pristine sources from a version control system: this script creates all 5# generated files which are needed for the build but not stored under version 6# control. 7 8# Copyright (C) 2005, 2006, 2007, 2008 Vadim Zeitlin 9# All Rights Reserved 10# 11# Redistribution and use in source and binary forms, with or without 12# modification, are permitted provided that the following conditions 13# are met: 14# 15# 1. Redistributions of source code must retain the above copyright 16# notice, this list of conditions and the following disclaimer. 17# 2. Redistributions in binary form must reproduce the above copyright 18# notice, this list of conditions and the following disclaimer in 19# the documentation and/or other materials provided with the 20# distribution. 21# 3. Neither the name of the Author nor the names of its contributors 22# may be used to endorse or promote products derived from this software 23# without specific prior written permission. 24# 25# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' 26# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 27# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 28# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR 29# OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 31# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 32# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 33# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 34# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 35# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36# SUCH DAMAGE. 37 38# $Id$ 39 40if [ ! -f configure.ac -o ! -f Makefile.am ]; then 41 echo "Please run this script from the diff-pdf source directory." 42 exit 2 43fi 44 45# use --foreign with automake because we lack standard GNU NEWS and AUTHOR 46# files, if they're added we can "upgrade" to (default) GNU strictness. Use 47# --copy to allow simultaneous use on windows under mingw and cygwin platforms. 48# Symlinking of files under mingw does not work out for cygwin and vice-versa. 49echo "Setting up build system for diff-pdf:" 50echo " - aclocal " && aclocal ${wx+-I} $wx -I admin && \ 51echo " - autoconf " && autoconf && \ 52echo " - automake " && automake --add-missing --copy --foreign && \ 53echo "Build setup successful, type \"./configure\" to configure diff-pdf now." && \ 54exit 0 55 56echo "Automatic build files setup failed!" 57 58exit 1 59