]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - test/waitjobs.sh
Changelog.
[thirdparty/cups.git] / test / waitjobs.sh
index dee7b1b9b7c7f1694d78d41a18dd264268ed15b3..79c1ab0570c8d53614a572c019b26eb1e1e530db 100755 (executable)
@@ -2,13 +2,10 @@
 #
 # Script to wait for jobs to complete.
 #
-#   Copyright 2008-2009 by Apple Inc.
+# Copyright © 2008-2019 by Apple Inc.
 #
-#   These coded instructions, statements, and computer programs are the
-#   property of Apple Inc. and are protected by Federal copyright
-#   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
-#   which should have been included with this file.  If this file is
-#   file is missing or damaged, see the license at "http://www.cups.org/".
+# Licensed under Apache License v2.0.  See the file "LICENSE" for more
+# information.
 #
 
 #
@@ -37,7 +34,7 @@ echo $ac_n "Waiting for jobs to complete...$ac_c"
 oldjobs=0
 
 while test $timeout -gt 0; do
-       jobs=`../systemv/lpstat 2>/dev/null | wc -l | tr -d ' '`
+       jobs=`$runcups ../systemv/lpstat 2>/dev/null | wc -l | tr -d ' '`
        if test $jobs = 0; then
                break
        fi