]> git.ipfire.org Git - thirdparty/cups.git/blob - everywhere/make-ippeveselfcert.sh
Add a (non-shipping) man page for ippserver.
[thirdparty/cups.git] / everywhere / make-ippeveselfcert.sh
1 #!/bin/sh
2 #
3 # "$Id$"
4 #
5 # Make an IPP Everywhere Printer self-certification package.
6 #
7 # Copyright 2014 The Printer Working Group.
8 # Copyright 2007-2013 by Apple Inc.
9 # Copyright 1997-2007 by Easy Software Products, all rights reserved.
10 #
11 # These coded instructions, statements, and computer programs are the
12 # property of Apple Inc. and are protected by Federal copyright
13 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
14 # which should have been included with this file. If this file is
15 # file is missing or damaged, see the license at "http://www.cups.org/".
16 #
17
18 # Make sure we are running in the right directory...
19 if test ! -f everywhere/make-ippeveselfcert.sh; then
20 echo "Run this script from the top-level CUPS source directory, e.g.:"
21 echo ""
22 echo " everywhere/make-ippeveselfcert.sh $*"
23 echo ""
24 exit 1
25 fi
26
27 if test $# != 2; then
28 echo "Usage: everywhere/make-ippeveselfcert.sh platform YYYYMMDD"
29 exit 1
30 fi
31
32 platform="$1"
33 fileversion="$2"
34
35 echo Creating package directory...
36 pkgdir="ippeveselfcert-$fileversion"
37
38 test -d $pkgdir && rm -r $pkgdir
39 mkdir $pkgdir || exit 1
40
41 echo Copying package files
42 cp LICENSE.txt $pkgdir
43 cp doc/help/man-ipp*.html $pkgdir
44 cp everywhere/README.txt $pkgdir
45 cp everywhere/man-ippserver.html $pkgdir
46 cp everywhere/*-tests.* $pkgdir
47 cp test/color.jpg $pkgdir
48 cp test/document-*.pdf $pkgdir
49 cp test/ippfind-static $pkgdir/ippfind
50 cp test/ippserver $pkgdir
51 cp test/ipptool-static $pkgdir/ipptool
52 cp test/printer.png $pkgdir
53
54 if test x$platform = xosx; then
55 pkgfile="$pkgdir-osx.dmg"
56 echo Creating disk image $pkgfile...
57 test -f $pkgfile && rm $pkgfile
58 hdiutil create -srcfolder $pkgdir $pkgfile
59 else
60 pkgfile="$pkgdir-$platform.tar.gz"
61 echo Creating archive $pkgfile...
62 tar czf $pkgfile $pkgdir || exit 1
63 fi
64
65 echo Removing temporary files...
66 rm -r $pkgdir
67
68 echo Done.
69
70 #
71 # End of "$Id$".
72 #