#!/bin/bash # # Generates to stdout an ant project build.xml content using some parameters from project_params # # this is used by 4java.makefile for build.xml target usage() { head -n 4 $0 } PROJECT_PARAMS=./project_params if [[ -f $PROJECT_PARAMS ]] then source $PROJECT_PARAMS else echo "[ERROR] missing $PROJECT_PARAMS " >&2 usage exit 1 fi # TODO reuse internal tsamp ${DSTAMP} ( after review i do't recall what is wanted to do here ) cat < $project_name build autogenerated build file by $0 script EOF if [[ -z $java_target ]] then echo ' ' else echo " " fi echo "" echo " " cat < EOF