configure 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #! /bin/sh
  2. #############################################################################
  3. ##
  4. ## Copyright (C) 2020 The Qt Company Ltd.
  5. ## Contact: http://www.qt.io/licensing/
  6. ##
  7. ## This file is part of the build tools of the Qt Toolkit.
  8. ##
  9. ## $QT_BEGIN_LICENSE:GPL-EXCEPT$
  10. ## Commercial License Usage
  11. ## Licensees holding valid commercial Qt licenses may use this file in
  12. ## accordance with the commercial license agreement provided with the
  13. ## Software or, alternatively, in accordance with the terms contained in
  14. ## a written agreement between you and The Qt Company. For licensing terms
  15. ## and conditions see https://www.qt.io/terms-conditions. For further
  16. ## information use the contact form at https://www.qt.io/contact-us.
  17. ##
  18. ## GNU General Public License Usage
  19. ## Alternatively, this file may be used under the terms of the GNU
  20. ## General Public License version 3 as published by the Free Software
  21. ## Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
  22. ## included in the packaging of this file. Please review the following
  23. ## information to ensure the GNU General Public License requirements will
  24. ## be met: https://www.gnu.org/licenses/gpl-3.0.html.
  25. ##
  26. ## $QT_END_LICENSE$
  27. ##
  28. #############################################################################
  29. srcpath=`dirname $0`
  30. srcpath=`(cd "$srcpath"; pwd)`
  31. configure=$srcpath/qtbase/configure
  32. if [ ! -e "$configure" ]; then
  33. echo "$configure not found. Did you forget to run \"init-repository\"?" >&2
  34. exit 1
  35. fi
  36. mkdir -p qtbase || exit
  37. echo "+ cd qtbase"
  38. cd qtbase || exit
  39. echo "+ $configure -top-level $@"
  40. exec "$configure" -top-level "$@"