root/schemas/VegCore/VegCore.ERD.mwb.run @ 8926
1 |
#!/bin/bash -e
|
---|---|
2 |
# syncs VegCore.ERD.mwb's zip file contents
|
3 |
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/runscripts/util.run |
4 |
|
5 |
if self_not_included; then |
6 |
|
7 |
export archive="${BASH_SOURCE[0]%.run}" |
8 |
|
9 |
export archive_filename="$(basename "$archive")" |
10 |
|
11 |
VegCore.my.sql/make ()
|
12 |
{
|
13 |
echo_func; set_make_vars
|
14 |
database=VegCore mysqldump_local >"$target" |
15 |
}
|
16 |
|
17 |
export_mysql ()
|
18 |
{
|
19 |
echo_func |
20 |
VegCore.my.sql/make |
21 |
}
|
22 |
|
23 |
export_ ()
|
24 |
{
|
25 |
echo_func |
26 |
(cd "$top_dir" |
27 |
unzip_newer "$archive_filename" document.mwb.xml) |
28 |
export_mysql |
29 |
}
|
30 |
|
31 |
import ()
|
32 |
{
|
33 |
echo_func |
34 |
(cd "$top_dir" |
35 |
zip_newer "$archive_filename" document.mwb.xml) |
36 |
}
|
37 |
|
38 |
sync () |
39 |
{
|
40 |
echo_func |
41 |
export_ "$@" |
42 |
import "$@" |
43 |
}
|
44 |
|
45 |
all ()
|
46 |
{
|
47 |
echo_func |
48 |
sync
|
49 |
}
|
50 |
|
51 |
fi
|