Commit beb5fa15 authored by Antoine Cellerier's avatar Antoine Cellerier

Oops (3).

parent fb8ed07b
......@@ -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 = {" } !/^#/{print " { \""$$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 */\nmirrors = 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