Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / lsolesen / pel / run-phpdoc.sh
1 #!/bin/sh
2 #
3 #  PEL: PHP Exif Library.  A library with support for reading and
4 #  writing all Exif headers of JPEG images using PHP.
5 #
6 #  Copyright (C) 2004, 2006  Martin Geisler
7 #
8 #  This program is free software; you can redistribute it and/or modify
9 #  it under the terms of the GNU General Public License as published by
10 #  the Free Software Foundation; either version 2 of the License, or
11 #  (at your option) any later version.
12 #
13 #  This program is distributed in the hope that it will be useful,
14 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #  GNU General Public License for more details.
17 #
18 #  You should have received a copy of the GNU General Public License
19 #  along with this program in the file COPYING; if not, write to the
20 #  Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21 #  Boston, MA 02110-1301 USA
22
23 # $Id$
24
25
26 # This small script simply runs phpDocumentor on the PEL sources.  It
27 # takes two optional arguments on the command line, the first of which
28 # should be a version number to include in the documentation.  The
29 # second argument should be the full path to the `phpdoc' script.
30
31 if [ -z $1 ]; then
32     VERSION=""
33 else
34     VERSION=" Version $1"
35 fi
36
37 if [ -z $2 ]; then
38     PHPDOC="phpdoc"
39 else
40     PHPDOC=$2
41 fi
42
43 # The ChangeLog file might not be here yet, but phpDocumentor fails if
44 # it is missing...
45 touch ChangeLog
46
47 echo "Running phpDocumentor... "
48 $PHPDOC                                                             \
49     --sourcecode          "on"                                      \
50     --title               "PEL: PHP Exif Library$VERSION"           \
51     --customtags          "date"                                    \
52     --defaultpackagename  "PEL"                                     \
53     --directory           "tutorials"                               \
54     --filename            "Pel*.php,README,INSTALL,NEWS,TODO,ChangeLog"  \
55     --target              "doc"