[Qbs] Recursive file installation and preserve the folder structure
Ben Lau
xbenlau at gmail.com
Sat Oct 21 10:23:24 CEST 2017
Hello,
I would like to write to QBS file to install a folder of files to a target
directory recursively. That is the folder structure
.
├── A
│ ├── 1
│ │ └── A1.txt
│ └── A.txt
└── installer.qbs
And that is the qbs file:
import qbs
import qbs.Environment
Project {
Product {
Group {
name: "all"
files: "**"
qbs.install: true
qbs.installRoot: "/tmp/qbs"
}
}
}
However, if I run the qbs by `qbs install -v`. All the files will be copied
in the same folder. The directory structure is broken.
$ qbs install -v
DEBUG: Copying file '/Users/benlau/src/github/junkcode/qt/qbs/A/1/A1.txt'
into target directory '/tmp/qbs'.
DEBUG: Copying file '/Users/benlau/src/github/junkcode/qt/qbs/A/A.txt' into
target directory '/tmp/qbs'.
$ ls /tmp/qbs
A.txt A1.txt
Any method to preserve the folder structure during installation?
Thx for any advise
The example source code
https://github.com/benlau/junkcode/tree/master/qt/qbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20171021/10c05d4a/attachment.html>
More information about the Qbs
mailing list