]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Update ipptool packaging script to allow for Fedora, Red Hat Enterprise Linux
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Mon, 15 Jul 2013 13:22:34 +0000 (13:22 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Mon, 15 Jul 2013 13:22:34 +0000 (13:22 +0000)
(RHEL). and Ubuntu Linux variants since LSB doesn't support OpenSSL or Avahi.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11139 a1ca3aef-8c08-0410-bb20-df032aa958be

cups/dest.c
tools/makeipptoolpkg
tools/makesrcdist
tools/testrpm

index 36481f80824815746fd94c44bcc20cc23bb3f39e..41434e397558084b2332b44b574e701d649de25f 100644 (file)
@@ -1427,6 +1427,7 @@ _cupsGetDests(http_t       *http, /* I  - Connection to server or
   */
 
   appleGetPaperSize(media_default, sizeof(media_default));
+  fprintf(stderr, "Apple default media = %s\n", media_default);
 #endif /* __APPLE__ */
 
  /*
index 1428257e460da99f426e67c1c925f0c16a64ff02..331bdbf30acb08e6282c3e7d6d097a7d68a50eba 100644 (file)
@@ -23,11 +23,13 @@ if test ! -f tools/makeipptoolpkg; then
         exit 1
 fi
 
-uname="`uname | awk '{print tolower($1)}'`"
-if test "x$1" = xlsb; then
-       shift
-       uname="linux-lsb"
-fi
+platform="`uname | awk '{print tolower($1)}'`"
+case "x$1" in
+       xfedora* | xlsb | xrhel* | xubuntu*)
+               platform="linux-$1"
+               shift
+               ;;
+esac
 
 if test $# = 0; then
        echo Updating to get snapshot version...
@@ -74,13 +76,13 @@ cp test/print-job-gzip.test $pkgdir
 cp test/testfile.* $pkgdir
 cp test/validate-job.test $pkgdir
 
-if test `uname` = Darwin; then
-       pkgfile="$pkgdir-macosx-universal.dmg"
+if test x$platform = xdarwin; then
+       pkgfile="$pkgdir-osx-universal.dmg"
        echo Creating disk image $pkgfile...
        test -f $pkgfile && rm $pkgfile
        hdiutil create -srcfolder $pkgdir $pkgfile
 else
-       pkgfile="$pkgdir-$uname-`uname -m`.tar.gz"
+       pkgfile="$pkgdir-$platform-`uname -m`.tar.gz"
        echo Creating archive $pkgfile...
        tar czf $pkgfile $pkgdir || exit 1
 fi
index 1b6b6da7da3b6907f23b20481e0a73d3317b9fde..e98ee0579ef36cf8282fbe5ac9c65f06c6cf93df 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# "$Id: makesrcdist 7776 2008-07-22 20:46:55Z mike $"
+# "$Id$"
 #
 # makesrcdist - make a source distribution of CUPS.
 #
@@ -129,5 +129,5 @@ rm -rf cups-$version
 echo "Done."
 
 #
-# End of "$Id: makesrcdist 7776 2008-07-22 20:46:55Z mike $".
+# End of "$Id$".
 #
index 7d4e9e4a3c7183d1c9a965b071f279f0abab101b..74d1449e4af0fdfc79cc1255f8156075be28e46e 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# "$Id: testrpm 5304 2006-03-18 01:21:37Z mike $"
+# "$Id$"
 #
 # Test script for making RPMs...
 #
@@ -28,5 +28,5 @@ rm -f /usr/src/redhat/SRPMS/cups*.rpm
 rpmbuild -ta $args cups-$fileversion-source.tar.bz2
 
 #
-# End of "$Id: testrpm 5304 2006-03-18 01:21:37Z mike $".
+# End of "$Id$".
 #