summaryrefslogtreecommitdiff
path: root/scripts/release.sh
blob: 0d971bb24274d32c6105b75bffaa2d4153507f31 (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
#!/usr/bin/env bash

echo "Are you sure that the files"
echo " * 'lib/core/libimagrt/src/version.rs'"
echo " * 'scripts/version-updated'"
echo "contain the right version setting?"
echo "If yes, pass '--I-AM-SURE-VERSION-IS-UPDATED' as parameter"

[[ "--I-AM-SURE-VERSION-IS-UPDATED" == $1 ]] || exit 1

CRATES=(
    ./lib/etc/libimagutil
    ./lib/etc/libimagtimeui
    ./lib/core/libimagerror
    ./lib/core/libimagstore
    ./lib/etc/libimagnotification
    ./lib/etc/libimaginteraction
    ./lib/core/libimagrt
    ./lib/entry/libimagentrylink
    ./lib/entry/libimagentrytag
    ./lib/entry/libimagentryfilter
    ./lib/entry/libimagentrygps
    ./lib/entry/libimagentryedit
    ./lib/entry/libimagentryview
    ./lib/entry/libimagentrydatetime
    ./lib/entry/libimagentryutil
    ./lib/entry/libimagentrycategory
    ./lib/entry/libimagentryref
    ./lib/entry/libimagentrymarkdown
    ./lib/entry/libimagentryannotation
    ./lib/domain/libimagbookmark
    ./lib/domain/libimaghabit
    ./lib/domain/libimagnotes
    ./lib/domain/libimagcontact
    ./lib/domain/libimagdiary
    ./lib/domain/libimaglog
    ./lib/domain/libimagtimetrack
    ./lib/domain/libimagtodo
    ./lib/domain/libimagmail
    ./lib/domain/libimagwiki
    ./bin/domain/imag-habit
    ./bin/domain/imag-diary
    ./bin/domain/imag-contact
    ./bin/domain/imag-notes
    ./bin/domain/imag-bookmark
    ./bin/domain/imag-timetrack
    ./bin/domain/imag-mail
    ./bin/domain/imag-todo
    ./bin/domain/imag-log
    ./bin/domain/imag-wiki
    ./bin/core/imag-ref
    ./bin/core/imag-gps
    ./bin/core/imag-diagnostics
    ./bin/core/imag-mv
    ./bin/core/imag-store
    ./bin/core/imag-tag
    ./bin/core/imag-grep
    ./bin/core/imag-annotate
    ./bin/core/imag-link
    ./bin/core/imag-view
    ./bin/core/imag-init
    ./bin/core/imag-edit
    ./bin/core/imag-ids
    ./bin/core/imag-git
    ./bin/core/imag-category
    ./bin/core/imag
)

for crate in ${CRATES[*]}; do
    echo -e "\t[CARGO][CHECK  ]\t$crate"
    RUST_BACKTRACE=1 cargo publish --manifest-path $crate/Cargo.toml || exit 1
    echo -e "\t[Waiting...]"
    sleep 15
done