diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-13 23:04:47 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-13 23:04:47 +0000 |
commit | c769a55a9cd93e2b6e3c6fdbc4cbf518a237180e (patch) | |
tree | d33ba537088448ade39cd3bd5def7855c6a2350d /java/sca/distribution/features/etc | |
parent | 269236152056eaa9382ceee7ae63aefb6ecb0454 (diff) |
Simplified and cleaned up the distro builds a bit. Moved script to etc directory.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@685723 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/distribution/features/etc')
-rwxr-xr-x | java/sca/distribution/features/etc/generate-pom.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/java/sca/distribution/features/etc/generate-pom.sh b/java/sca/distribution/features/etc/generate-pom.sh new file mode 100755 index 0000000000..cf53e890d9 --- /dev/null +++ b/java/sca/distribution/features/etc/generate-pom.sh @@ -0,0 +1,40 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# After building a distribution, this script can be used to +# generate a Maven build profile that includes all the modules +# included directly or transitively in that distribution + +echo " <profile>" +echo " <id>modules</id>" +echo " <modules>" + +unzip -v target/*-SNAPSHOT.zip | awk '/(.*)(\/modules\/tuscany-)(.*)(\..ar$)/ { print gensub("(.*)(/modules/tuscany-)(.*)(-...-SNAPSHOT.jar)", "\\3", "g")}' | sort | awk '{ printf " <module>../../../modules/%s</module>\n", $1 }' + +echo " </modules>" +echo " </profile>" +echo "" + +# This generates a list of includes that can be included in a +# Maven assembly fileset, to include the source of the modules +# in a source distribution for example + +echo " <includes>" +unzip -v target/*-SNAPSHOT.zip | awk '/(.*)(\/modules\/tuscany-)(.*)(\..ar$)/ { print gensub("(.*)(/modules/tuscany-)(.*)(-...-SNAPSHOT.jar)", "\\3", "g")}' | sort | awk '{ printf " <include>%s/**/*</include>\n", $1 }' +echo " </includes>" +echo "" + |