#!/usr/bin/env bash # # Summary: process *.lg and *.fls file, output *.d file (Makefile format) # with lists of dependencies and derived files # # Usage: fls2d foo.fls # # # set -e lginput=$1 flsinput=$2 stem=${1%.*} source ${0%/*}/fls2x echo -e "##\n## Script generated file. Please do not edit\n##" flslg2dd $lginput $flsinput $stem ${stem}_derived OUTPUT "derived files list from ${lginput} and ${flsinput}." fls2dd $flsinput $stem ${stem}_deps INPUT "deps files list from ${flsinput}."