5 # Make an IPP Everywhere Printer self-certification package.
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.
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/".
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.:"
22 echo " everywhere/make-ippeveselfcert.sh $*"
28 echo "Usage: everywhere/make-ippeveselfcert.sh platform YYYYMMDD"
35 echo Creating package directory...
36 pkgdir
="ippeveselfcert-$fileversion"
38 test -d $pkgdir && rm -r $pkgdir
39 mkdir
$pkgdir ||
exit 1
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
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
60 pkgfile
="$pkgdir-$platform.tar.gz"
61 echo Creating archive
$pkgfile...
62 tar czf
$pkgfile $pkgdir ||
exit 1
65 echo Removing temporary files...