Commit 46bf601b authored by Antoine Cellerier's avatar Antoine Cellerier

Oops (4).

parent beb5fa15
......@@ -55,7 +55,7 @@ clean: clean-recursive
$(ROOT)/include/mirrors.php: $(ROOT)/include/mirrors
@echo "Processing $< ..."
awk -F '|' 'BEGIN { print "<?php\n/* This file is automatically generated from the mirrors file. Do not edit */\nmirrors = array(" } !/^#/{print " array( \""$$1"\", \""$$2"\", \""$$3"\", \""$$4"\", \""$$5"\", "$$6" ),"} END { print ");\n?>" }' $< > $<.php
awk -F '|' 'BEGIN { print "<?php\n/* This file is automatically generated from the mirrors file. Do not edit */\n$$mirrors = array(" } !/^#/{print " array( \""$$1"\", \""$$2"\", \""$$3"\", \""$$4"\", \""$$5"\", "$$6" ),"} END { print ");\n?>" }' $< > $<.php
.PHONY: clean all
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment