Created
April 27, 2013 19:45
-
-
Save pschulam/5474417 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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