#!/bin/sh ds=`date "+2.1.0.v%Y%m%d-%H%M"` dir=`pwd` mvn source:aggregate mv target/maven-2.1-SNAPSHOT-sources.jar $dir/maven-embedder-$ds-depsrc.zip ( cd maven-embedder sed "s@.*@$ds@" pom.xml > tmp; mv tmp pom.xml mvn clean assembly:assembly mv target/maven-embedder-$ds-dep.jar $dir )