diff options
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 .. |