~ubuntu-branches/ubuntu/natty/exif/natty

« back to all changes in this revision

Viewing changes to exif/check-param-validity.in

  • Committer: Bazaar Package Importer
  • Author(s): Emmanuel Bouthenot
  • Date: 2008-03-31 19:39:44 UTC
  • mfrom: (4.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080331193944-xndxlofl9m7h7a83
Tags: 0.6.15-5
* Adopt the package within pkg-phototools:
  - Set the Maintainer to the group
  - Add Frederic Peters and myself as Uploaders.
  - Add Vcs-Browser and Vcs-Git fields accordingly.
* debian/control:
  - Add a Homepage field.
  - Update Standards-Version to 3.7.3
  - Fix build dep version for libexif-dev.
  - Add build dep on quilt for patches extracted from package diff.
  - Add build dep on gettext for swedish translation.
* debian/copyright:
  - convert file to utf-8.
  - Point to LGPL-2 rather than just LGPL, which now points to
    LGPL-3.
* debian/rules
  - Fix autotools timestamp issues which causes FTBFS (closes: #445609)
  - Fix lintian 'clean error' warning.
* debian/patches
  - Extract swedish translation patch from package diff (cf. bug 397370).
  - Extract patch related to default ifd from package diff (cf. bug 428255).
  - Extract patch related to manpage improvements from package diff (cf.
    bugs 320497 and 321855).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
exif="@exif@"
 
4
failed="0"
 
5
 
 
6
echo -n "Running \`${exif} --help'..."
 
7
if ${exif} --help > /dev/null; then
 
8
    echo " good (return code 0)"
 
9
else
 
10
    echo " bad (return code != 0)"
 
11
    failed="$(expr "$failed" + 1)"
 
12
fi
 
13
 
 
14
echo -n "Running \`${exif} --thisparameterdoesnotexist'..."
 
15
if ${exif} --thisparameterdoesnotexist > /dev/null; then
 
16
    echo " bad (return code 0)"
 
17
    failed="$(expr "$failed" + 1)"
 
18
else
 
19
    echo " good (return code != 0)"
 
20
fi
 
21
 
 
22
if test "$failed" = "0"; then
 
23
    exit 0
 
24
else
 
25
    echo "FAILED $failed checks."
 
26
    exit 1
 
27
fi