summaryrefslogtreecommitdiff
path: root/intro2-tldr.orig
blob: 769f17970b13f69e8fb328a7d6f266f2a49f39fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
created new executable project hello in /tmp/hello.git/
[master (root-commit) 838e609] first commit
 13 files changed, 141 insertions(+)
 create mode 100644 .gitattributes
 create mode 100644 .gitignore
 create mode 100644 README.md
 create mode 100644 build/.gitignore
 create mode 100644 build/bootstrap.build
 create mode 100644 build/root.build
 create mode 100644 buildfile
 create mode 100644 hello/.gitignore
 create mode 100644 hello/buildfile
 create mode 100644 hello/hello.cxx
 create mode 100644 hello/testscript
 create mode 100644 manifest
 create mode 100644 repositories.manifest

+ git clone file:///tmp/hello.git
Cloning into 'hello'...

+ tree hello
hello
├── build
│   ├── bootstrap.build
│   └── root.build
├── buildfile
├── hello
│   ├── buildfile
│   ├── hello.cxx
│   └── testscript
├── manifest
├── README.md
└── repositories.manifest

2 directories, 9 files

+ cd hello

+ bdep init --config-create ../hello-gcc cc config.cxx=g++
initializing in project /tmp/hello/
created configuration /tmp/hello-gcc/ 1 target default,forwarded,auto-synchronized
synchronizing:
  new hello/0.1.0

+ b
mkdir ../hello-gcc/hello/fsdir{hello/}
c++ hello/cxx{hello}@../hello-gcc/hello/hello/
ld ../hello-gcc/hello/hello/exe{hello}
ln ../hello-gcc/hello/hello/exe{hello} -> hello/

+ hello/hello World
Hello, World!

+ b
fetching git:build2.org/hello/libhello#v1.0.0 (prerequisite of dir:/tmp/hello)
querying https://git.build2.org/hello/libhello.git
fetching from https://git.build2.org/hello/libhello.git
synchronizing /tmp/hello-gcc/:
  new libhello/1.0.0+4 (required by hello)
  upgrade hello/0.1.0#1
distributing libhello/1.0.0+4
c++ ../hello-gcc/libhello-1.0.0+4/libhello/cxx{hello}
c++ hello/cxx{hello}@../hello-gcc/hello/hello/
version.in ../hello-gcc/libhello-1.0.0+4/libhello/version.hxx.in
ld ../hello-gcc/libhello-1.0.0+4/libhello/libs{hello}
ld ../hello-gcc/hello/hello/exe{hello}
ln ../hello-gcc/hello/hello/exe{hello} -> hello/

+ bdep fetch
fetching git:build2.org/hello/libhello (prerequisite of dir:/tmp/hello)
querying https://git.build2.org/hello/libhello.git
fetching from https://git.build2.org/hello/libhello.git
fetching git:build2.org/hello/libformat##HEAD (prerequisite of git:build2.org/hello/libhello)
querying https://git.build2.org/hello/libformat.git
fetching from https://git.build2.org/hello/libformat.git
fetching git:build2.org/hello/libprint##HEAD (prerequisite of git:build2.org/hello/libhello)
querying https://git.build2.org/hello/libprint.git
fetching from https://git.build2.org/hello/libprint.git

+ bdep status -i
hello configured 0.1.0#1
  libhello ^1.0.0 configured 1.0.0+4 available [1.1.0+8] [1.0.0+8]

+ bdep sync libhello
synchronizing:
  new libformat/1.0.0+8 (required by libhello)
  new libprint/1.0.0+8 (required by libhello)
  upgrade libhello/1.1.0+8
  reconfigure hello/0.1.0#1
distributing libformat/1.0.0+8
distributing libprint/1.0.0+8
distributing libhello/1.1.0+8

+ bdep sync libhello/1.0.0
synchronizing:
  drop libprint/1.0.0+8 (unused)
  drop libformat/1.0.0+8 (unused)
  downgrade libhello/1.0.0+8
  reconfigure hello/0.1.0#1
distributing libhello/1.0.0+8