Project

General

Profile

« Previous | Next » 

Revision 9074

*{.sh,run}: removed extra space between function name and (), which is apparently not needed even though `help function` includes it. this greatly improves readability, including when function names are pasted into commit messages!

View differences:

import.sh
22 22
: "${table="$(basename "$PWD")"}"
23 23
export schema table
24 24

  
25
psql ()
25
psql()
26 26
{
27 27
	(cat <<EOF
28 28
\set schema "$schema"
......
34 34
	env no_search_path=1 "$bin_dir"/psql_verbose_vegbien
35 35
}
36 36

  
37
make ()
37
make()
38 38
{
39 39
	(set -x; env make --directory=.. --makefile=../input.Makefile \
40 40
"${@/#/$table/}")
41 41
}
42 42

  
43
map_table ()
43
map_table()
44 44
{
45 45
	make map.csv
46 46
	psql <<EOF
......
50 50
EOF
51 51
}
52 52

  
53
mk_derived () { "$root_dir"/schemas/VegCore/mk_derived; }
53
mk_derived() { "$root_dir"/schemas/VegCore/mk_derived; }
54 54

  
55
public_schema_exists ()
55
public_schema_exists()
56 56
{ "$bin_dir"/psql_script_vegbien </dev/null 2>/dev/null; }
57 57

  
58
remake_VegBIEN_mappings ()
58
remake_VegBIEN_mappings()
59 59
{
60 60
	public_schema_exists || return 0
61 61
	rm header.csv map.csv # remake them

Also available in: Unified diff