Project

General

Profile

« Previous | Next » 

Revision 8705

*run: added include guards

View differences:

inputs/GBIF/table.run
1 1
#!/bin/bash -e
2 2
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/table.run
3 3

  
4
if self_not_included; then
5

  
4 6
MySQL_export ()
5 7
{
6 8
	echo_func "$@"
......
16 18
	MySQL_export
17 19
	"$(dirname "${BASH_SOURCE[0]}")"/../../lib/table.run "$FUNCNAME" "$@"
18 20
}
21

  
22
fi
inputs/GBIF/raw_occurrence_record/run
1 1
#!/bin/bash -e
2 2
. "$(dirname "${BASH_SOURCE[0]}")"/../table.run
3 3

  
4
if self_not_included; then
5

  
4 6
MySQL_export ()
5 7
{
6 8
	echo_func "$@"
7 9
	"$(dirname "${BASH_SOURCE[0]}")"/../table.run "$FUNCNAME" "$@"
8 10
}
11

  
12
fi
inputs/GBIF/_MySQL/run
1 1
#!/bin/bash -e
2 2
. "$(dirname "${BASH_SOURCE[0]}")"/../../../lib/import.run
3 3

  
4
if self_not_included; then
5

  
4 6
import ()
5 7
{
6 8
	echo_func "$@"
7 9
	make
8 10
}
11

  
12
fi
inputs/GBIF/run
1 1
#!/bin/bash -e
2 2
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/import.run
3 3

  
4
if self_not_included; then
5

  
4 6
subdirs=(_MySQL raw_occurrence_record)
5 7

  
6 8
import ()
......
8 10
	echo_func "$@"
9 11
	fwd "$FUNCNAME" "$@"
10 12
}
13

  
14
fi
schemas/VegCore/VegCore.ERD.mwb.run
2 2
# syncs VegCore.ERD.mwb's zip file contents
3 3
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/util.run
4 4

  
5
if self_not_included; then
6

  
5 7
export archive="${BASH_SOURCE[0]%.run}"
6 8

  
7 9
export archive_filename="$(basename "$archive")"
......
32 34
	echo_func "$@"
33 35
	sync
34 36
}
37

  
38
fi
lib/table.run
16 16
. "$(dirname "${BASH_SOURCE[0]}")"/import.run
17 17
. "$(dirname "${BASH_SOURCE[0]}")"/local.run
18 18

  
19
if self_not_included; then
20

  
19 21
quote='"'
20 22

  
21 23
esc_name () { echo "$quote${1//$quote/$quote$quote}$quote"; }
......
105 107
	postprocess
106 108
	mk_derived
107 109
}
110

  
111
fi
lib/import.run
13 13

  
14 14
. "$(dirname "${BASH_SOURCE[0]}")"/util.run
15 15

  
16
if self_not_included; then
17

  
16 18
import ()
17 19
{
18 20
	echo_func "$@"
......
23 25
	echo_func "$@"
24 26
	import
25 27
}
28

  
29
fi
lib/local.run
2 2
# links to locally-available resources
3 3
. "$(dirname "${BASH_SOURCE[0]}")"/util.run
4 4

  
5
if self_not_included; then
6

  
5 7
root_dir="$(dirname "${BASH_SOURCE[0]}")"/..
6 8
bin_dir="$root_dir"/bin
9

  
10
fi

Also available in: Unified diff