Skip to content

Instantly share code, notes, and snippets.

@pschulam
Created April 27, 2013 19:45
Show Gist options
  • Save pschulam/5474417 to your computer and use it in GitHub Desktop.
Save pschulam/5474417 to your computer and use it in GitHub Desktop.
archive: stuff you want to archive
$(eval DATE := $(shell date +'%F.%R'))
@mkdir -p .archive/$(DATE)
@rm -f .archive/$(DATE)/options.txt
@$(foreach V,$(sort $(.VARIABLES)),$(if $(filter-out environment% default automatic,$(origin $V)),echo '$V=$(value $V)' >> .archive/$(DATE)/options.txt;))
@cp $^ .archive/$(DATE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment