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
_______________________________________________
Qbs mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qbs