Project

General

Profile

« Previous | Next » 

Revision 6984

input.Makefile: Editing import: Added rename/% and use it in rotate

View differences:

input.Makefile
416 416

  
417 417
##### Editing import
418 418

  
419
rotate: _always
420
	echo "UPDATE source SET shortname = shortname||'.$(version)'\
421
WHERE shortname = '$(datasrc)';"|$(psqlAsBien)
419
rename/%: _always
420
	echo "UPDATE source SET shortname = '$*' WHERE shortname = '$(datasrc)';"\
421
|$(psqlAsBien)
422 422

  
423
rotate: _always rename/$(datasrc).$(version) ;
424

  
423 425
rm: _always
424 426
	echo "DELETE FROM source WHERE shortname = '$(datasrc)';"|$(psqlAsBien)
425 427

  

Also available in: Unified diff