From d522c01d87bf31b237e322319da290ee3860e3b8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 14 May 2018 14:12:41 +0200 Subject: Update intro2 scripts/output --- intro2-tour | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 57 insertions(+), 2 deletions(-) (limited to 'intro2-tour') diff --git a/intro2-tour b/intro2-tour index 794ed2e..aca5085 100755 --- a/intro2-tour +++ b/intro2-tour @@ -41,7 +41,7 @@ function clean () rm -rf hello hello-gcc hello-clang hello-vc-* hello-mingw } -##if false; then +## if false; then clean @@ -81,6 +81,8 @@ show bdep update @mingw show bdep test @mingw show ../hello-mingw/hello/hello/hello.exe Windows +show bdep deinit @gcc @clang + cd .. ##fi @@ -227,7 +229,60 @@ git commit -a -m "Another commit" show bdep status cd .. -##fi +## fi + +# Developing Multiple Packages and Projects (multi-project). +# +rm -rf libhello + +clean +show bdep new -C hello-gcc @gcc -t exe -l c++ hello cc config.cxx=$gcc +cd hello +show bdep init -C ../hello-clang @clang cc config.cxx=$clang +cd .. + +show bdep new -t lib -l c++ libhello +show cd libhello + +show bdep init -A ../hello-gcc @gcc +show bdep init -A ../hello-clang @clang + +show cd ../hello +cat <>manifest +depends: libhello +EOF +sed -i -re 's/^#import/import/' hello/buildfile + +show bdep test -i + +# Developing Multiple Packages and Projects (multi-package). +# +clean +show bdep new -C hello-gcc @gcc -t exe -l c++ hello cc config.cxx=$gcc +show cd hello +show bdep init -C ../hello-clang @clang cc config.cxx=$clang + +mkdir tmp +mv build hello buildfile manifest .gitignore tmp/ +mv tmp hello + +show bdep new --package -t lib -l c++ libhello +show cat packages.manifest +cat <>packages.manifest +: +location: hello/ +EOF + +show cd libhello +show bdep init -a + +show cd .. +cat <>hello/manifest +depends: libhello +EOF +sed -i -re 's/^#import/import/' hello/hello/buildfile + +show bdep test # Package Consumption. # -- cgit v1.1