summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2013-07-16 22:16:23 +0200
committerTails developers <amnesia@boum.org>2013-07-16 22:16:23 +0200
commit0127bf30bacfd79c051dc7ab0d23d8403973c7c5 (patch)
tree0bd67b0129f886fed6b89daefe37baf7f10d548a
parentfacff445f721f17c7ff6d96be389beb3e64eb02e (diff)
Support moving blueprints out of the way.
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 653c3f4..4509df1 100644
--- a/Makefile
+++ b/Makefile
@@ -76,6 +76,20 @@ export2.csv: statedir destdir $(IKIWIKI_SETUP) install-shortcuts bin/concat-csv
cd "$(IKIWIKI_SRC)" && perl ikiwiki.in $(IKIWIKI_OPTS) --idsmap=$(IDS_MAP)
bin/concat-csv --from $(DEST_DIR) > $(EXPORT2_CSV)
+.PHONY: blueprints-directory
+blueprints-directory: destdir/blueprints-directory.stamp
+destdir/blueprints-directory.stamp:
+ mkdir -p "$(BLUEPRINT_DIR)"
+
+.PHONY: move-blueprints
+move-blueprints: destdir/move-blueprints.stamp
+destdir/move-blueprints.stamp: blueprints-directory
+ for ticket in $(shell cat config/blueprints) ; do \
+ git --git-dir="$(GIT_SRC_DIR)" --work-tree="$(SRC_WORK_TREE)" \
+ mv "$(TODO_SRC_DIR)/$$ticket.mdwn" \
+ "$(BLUEPRINT_DIR)/$$ticket.mdwn" ; \
+ done
+
rewrite-rules: ids.map
bin/rewrite-rules $(REDMINE_URL) $(IDS_MAP) > $(HTACCESS)