summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
diff options
context:
space:
mode:
authorSafiyyah Moosa <safiyyah.moosa@qt.io>2023-06-25 14:17:12 +0200
committerSafiyyah Moosa <safiyyah.moosa@qt.io>2023-06-30 12:10:42 +0200
commit8dae99409df0a3d429540db9a8ee7225c6a7da30 (patch)
treecab756d000f6809fcb51b6b00f52f0db16532b97 /doc/src/snippets
parentd36ba6e8ff68d043e2a82c6fccfa92afcc207b14 (diff)
Docs: Update code snippet to use shadow build
Removed unused doc/src/snippets/code/doc_src_emb-install.qdoc file. Task-number: QTBUG-113747 Change-Id: Ic707083289417a3636b840ccedae47122eb369db Pick-to: 6.5 6.6 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'doc/src/snippets')
-rw-r--r--doc/src/snippets/code/doc_src_emb-install.qdoc44
-rw-r--r--doc/src/snippets/code/doc_src_installation.qdoc12
2 files changed, 8 insertions, 48 deletions
diff --git a/doc/src/snippets/code/doc_src_emb-install.qdoc b/doc/src/snippets/code/doc_src_emb-install.qdoc
deleted file mode 100644
index 3c211a70b..000000000
--- a/doc/src/snippets/code/doc_src_emb-install.qdoc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-//! [0]
-cd <anywhere>
-gunzip qt-everywhere-src-%VERSION%.tar.gz
-tar xf qt-everywhere-src-%VERSION%.tar
-//! [0]
-
-
-//! [1]
-~/qt-everywhere-src-%VERSION%
-//! [1]
-
-
-//! [embedded help]
-./configure -embedded -help
-//! [embedded help]
-
-//! [2]
-cd ~/qt-everywhere-src-%VERSION%
-./configure -embedded [architecture]
-//! [2]
-
-
-//! [3]
-make
-//! [3]
-
-
-//! [4]
-su -c "make install"
-//! [4]
-
-
-//! [5]
-PATH=/usr/local/Qt-%VERSION%/bin:$PATH
-export PATH
-//! [5]
-
-
-//! [6]
-setenv PATH /usr/local/Qt-%VERSION%/bin:$PATH
-//! [6]
diff --git a/doc/src/snippets/code/doc_src_installation.qdoc b/doc/src/snippets/code/doc_src_installation.qdoc
index 23deff422..d0cd66b01 100644
--- a/doc/src/snippets/code/doc_src_installation.qdoc
+++ b/doc/src/snippets/code/doc_src_installation.qdoc
@@ -2,15 +2,19 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
//! [11]
+\badcode \QtVersion
cd /tmp
-gunzip qt-everywhere-src-%VERSION%.tar.gz # uncompress the archive
-tar xvf qt-everywhere-src-%VERSION%.tar # unpack it
+tar xf ~/Downloads/qt-everywhere-src-\1.tar.xz
+\endcode
//! [11]
//! [12]
-cd /tmp/qt-everywhere-src-%VERSION%
-./configure
+\badcode \QtVersion
+mkdir -p ~/dev/qt-build
+cd ~/dev/qt-build
+/tmp/qt-everywhere-src-\1/configure
+\endcode
//! [12]