#!/bin/bash

source "$(dirname $0)/00-config"
mkdir -p $WORKDATADIR/03
rm $WORKDATADIR/03/*

for queries in $WORKDATADIR/02/*; do
  cat source-data/query-header >> $WORKDATADIR/03/$(basename $queries)
  cat $WORKDATADIR/02/$(basename $queries) >> $WORKDATADIR/03/$(basename $queries)
  cat source-data/query-footer >> $WORKDATADIR/03/$(basename $queries)
done
