func createMapOrder(pmData pd.PrintmapsData) error {
	file := filepath.Join(pd.PathWorkdir, pd.PathOrders, pmData.Data.ID) + ".json"
	if _, err := os.Stat(pd.PathOrders); os.IsNotExist(err) {
		if err := os.MkdirAll(pd.PathOrders, 0755); err != nil {
			log.Printf("error <%v> at os.MkdirAll(), path = <%s>", err, pd.PathOrders)
			return err
		}
	}
	data, err := json.MarshalIndent(pmData, pd.IndentPrefix, pd.IndexString)
	if err != nil {
		log.Printf("error <%v> at json.MarshalIndent()", err)
		return err
	}
	return ioutil.WriteFile(file, data, 0666)
}
/*
createMapOrder is a helper to create a (asynchronous) build order for the map defined in the meta data
package main
import (
	"bufio"
	"encoding/json"
	"fmt"
	"io/ioutil"
	"log"
	"os"
	"os/exec"
	"path/filepath"
	"strings"
	"syscall"
	pip "github.com/JamesMilnerUK/pip-go"
	"github.com/printmaps/printmaps/pd"
)