Project

General

Profile

« Previous | Next » 

Revision 6930

schemas/Makefile: Merged public%/uninstall and %/uninstall

View differences:

Makefile
47 47
"COMMENT ON SCHEMA $(@D) IS 'Version: $(@D) ($(date))';"|$(psqlNoSearchPath)
48 48
	<$< $(sed) 's/( )public([,; ])/\1$(@D)\2/g'|$(psqlNoSearchPath)
49 49

  
50
public/uninstall public%/uninstall: _always
51
	@$(call confirmRmPublicSchema,$(@D))
52
	echo $(call rmSchemaCmd,$(@D))|$(psqlNoSearchPath)
53

  
54 50
# Replaces the current public schema with the given version
55 51
public%/publish: _always
56 52
	@$(call confirmRmPublicSchema,public,To save it: make schemas/rotate)
......
76 72
# ignore errors if schema exists
77 73

  
78 74
%/uninstall: _always
75
	@$(if $(filter public%,$*),$(call confirmRmPublicSchema,$*))
79 76
	echo $(call rmSchemaCmd,$*)|$(psqlNoSearchPath)
80 77

  
81 78
# Needed on Ubuntu 12.04 (also other Linuxes?) because %/reinstall is ignored.

Also available in: Unified diff