diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-06-19 08:30:01 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-06-19 08:30:01 +0200 |
commit | 9939f1721a3bf4fca69ae87bc7bd9fc8ac407f83 (patch) | |
tree | 9714aa5ceae7573bd14e097ffe58e126cf4c4078 /intro2-tour | |
parent | 1e25707eecaf91a29072018cb73ecae668388afb (diff) |
Updates for 0.17.0 releasev0.17.0
Diffstat (limited to 'intro2-tour')
-rwxr-xr-x | intro2-tour | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/intro2-tour b/intro2-tour index 8af8fea..99f1a79 100755 --- a/intro2-tour +++ b/intro2-tour @@ -421,7 +421,7 @@ sed -i -re 's/^#import/import/' hello/hello/buildfile show bdep test cd .. -# Package Consumption. +# Package Consumption: executable. # rm -rf tools @@ -435,8 +435,37 @@ show bpkg create -d tools cc \ show cd tools show bpkg build hello@https://git.build2.org/hello/hello.git + show bpkg install hello show /opt/tools/bin/hello World show tree /opt/tools show bpkg uninstall hello + +show bpkg install -r hello +show tree /opt/tools +show bpkg uninstall -r hello + show bpkg drop hello +cd .. + +# Package Consumption: library. +# +rm -rf libs + +show bpkg create -d libs cc \ + config.cxx=$gcc \ + config.cc.coptions=-O3 \ + config.install.root=/opt/libs \ + config.install.sudo=sudo \ + config.bin.rpath=/opt/libs/lib \ + config.bin.lib=shared + +show cd libs + +show bpkg build libhello@https://git.build2.org/hello/libhello.git +show bpkg install libhello +show tree /opt/libs +show bpkg uninstall libhello +show bpkg drop libhello + +cd .. |