From ca71305e9c7add5274502f170321a0423fdb3fd4 Mon Sep 17 00:00:00 2001 From: Nate Cavanaugh Date: Sun, 23 May 2010 22:09:47 +0000 Subject: [PATCH] AUI-74 - Improve the gallery exporter git-svn-id: svn://svn.liferay.com/repos/public/alloy/trunk@53572 05bdf26c-840f-0410-9ced-eb539d925f36 --- build.xml | 138 ++++++++++++++++-------------- resources/gallery/export_alloy.sh | 74 +++++++++++++++- 2 files changed, 142 insertions(+), 70 deletions(-) diff --git a/build.xml b/build.xml index afc46e5f425..bfe9098e21b 100644 --- a/build.xml +++ b/build.xml @@ -110,7 +110,76 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -268,6 +272,8 @@ + + diff --git a/resources/gallery/export_alloy.sh b/resources/gallery/export_alloy.sh index 0bd08a8ca1f..3982a56b506 100644 --- a/resources/gallery/export_alloy.sh +++ b/resources/gallery/export_alloy.sh @@ -15,17 +15,21 @@ if [[ ! $fromDir ]]; then fromDir=$projectDir fi -rm -rf $toDir -cp -R $fromDir $toDir - -find $toDir -type d -name ".svn" | xargs rm -rf +parentDir=`dirname $toDir` srcDir=${toDir}/src demosDir=${toDir}/demos buildDir=${toDir}/build +rm -rf $toDir +cp -R $fromDir $toDir + +find $toDir -type d -name ".svn" | xargs rm -rf + find ${toDir} -type f -name "build.xml" | xargs perl -pi -e 's///g;' +find $demosDir/* -type f -name "*.html" | xargs perl -pi -e 's/