Project

General

Profile

« Previous | Next » 

Revision 8242

lib/import.sh: Added make() and use it instead of the full make command

View differences:

lib/import.sh
34 34
	env no_search_path=1 "$bin_dir"/psql_verbose_vegbien
35 35
}
36 36

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

  
37 43
map_table ()
38 44
{
39
	make --directory=.. --makefile=../input.Makefile "$table"/map.csv
45
	make map.csv
40 46
	psql <<EOF
41 47
SELECT util.reset_map_table('pg_temp.map');
42 48
\copy pg_temp.map FROM 'map.csv' CSV HEADER;

Also available in: Unified diff