File: bundle

package info (click to toggle)
zkg 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,740 kB
  • sloc: python: 5,910; sh: 268; makefile: 265; cpp: 24
file content (48 lines) | stat: -rw-r--r-- 1,533 bytes parent folder | download | duplicates (4)
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
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: zkg install foo baz
# @TEST-EXEC: zkg install bar --version 1.0.0
# @TEST-EXEC: zkg bundle test.bundle
# @TEST-EXEC: zkg purge
# @TEST-EXEC: zkg unbundle test.bundle
# @TEST-EXEC: zkg list installed > snapshot.out
# @TEST-EXEC: btest-diff snapshot.out

# @TEST-EXEC: zkg purge
# @TEST-EXEC: zkg bundle test.bundle --manifest foo bar baz
# @TEST-EXEC: zkg unbundle test.bundle
# @TEST-EXEC: zkg list installed > args.out
# @TEST-EXEC: btest-diff args.out

# @TEST-EXEC: zkg purge
# @TEST-EXEC: zkg bundle test.bundle --manifest manifest.txt
# @TEST-EXEC: zkg unbundle test.bundle
# @TEST-EXEC: zkg list installed > manifest.out
# @TEST-EXEC: btest-diff manifest.out

default_branch_name=$( cd packages/baz && git rev-parse --abbrev-ref HEAD )
echo "[bundle]" > manifest.txt
echo "foo = 1.0.0" >> manifest.txt
echo "bar = 1.0.1" >> manifest.txt
echo "baz = ${default_branch_name}" >> manifest.txt

cd packages/foo
echo 'print "foo 1.0.0";' > __load__.zeek
git commit -am 'new stuff'
git tag -a 1.0.0 -m 1.0.0
echo 'print "foo 1.0.1";' > __load__.zeek
git commit -am 'new stuff'
git tag -a 1.0.1 -m 1.0.1
echo 'print "foo 1.0.2";' > __load__.zeek
git commit -am 'new stuff'
git tag -a 1.0.2 -m 1.0.2

cd ../bar
echo 'print "bar 1.0.0";' > __load__.zeek
git commit -am 'new stuff'
git tag -a 1.0.0 -m 1.0.0
echo 'print "bar 1.0.1";' > __load__.zeek
git commit -am 'new stuff'
git tag -a 1.0.1 -m 1.0.1
echo 'print "bar 1.0.2";' > __load__.zeek
git commit -am 'new stuff'
git tag -a 1.0.2 -m 1.0.2