forked from liferay/liferay-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: svn://svn.liferay.com/repos/public/plugins/trunk@17572 05bdf26c-840f-0410-9ced-eb539d925f36
- Loading branch information
Showing
4 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@echo off | ||
|
||
if "" == "%1" goto errorCreate | ||
if "" == "%2" goto errorCreate | ||
|
||
call ant -Dlayouttpl.name=%1 -Dlayouttpl.display.name=%2 create | ||
|
||
svn add %1-layouttpl | ||
|
||
cd %1-layouttpl\docroot | ||
|
||
svn ps svn:ignore -F .cvsignore . | ||
|
||
svn remove --force .cvsignore | ||
|
||
cd WEB-INF | ||
|
||
svn ps svn:ignore -F .cvsignore . | ||
|
||
svn remove --force .cvsignore | ||
|
||
cd .. | ||
|
||
cd .. | ||
|
||
call ant deploy | ||
|
||
cd .. | ||
|
||
goto end | ||
|
||
:errorCreate | ||
echo. | ||
echo Usage: create.bat hello-world "Hello World" | ||
echo. | ||
echo The first hello-world is your layouttpl id. A new directory will be created based | ||
echo on the layouttpl id. | ||
echo. | ||
echo The second "Hello World" is the layouttpl's display name. The quotation marks are | ||
echo only needed because there is a space in the display name. | ||
|
||
goto end | ||
|
||
:end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/sh | ||
|
||
#set -x | ||
|
||
if [ -z "$1" ]; then | ||
echo | ||
echo Usage: ./create.sh hello-world \"Hello World\" | ||
echo | ||
echo The first hello-world is your layouttpl id. A new directory will be created based | ||
echo on the layouttpl id. | ||
echo | ||
echo The second \"Hello World\" is the layouttpl\'s display name. The quotation marks are | ||
echo only needed because there is a space in the display name. | ||
|
||
exit 127 | ||
fi | ||
|
||
ant -Dlayouttpl.name=$1 -Dlayouttpl.display.name=\"$2\" create | ||
|
||
svn add $1-layouttpl | ||
|
||
cd $1-layouttpl/docroot | ||
|
||
svn ps svn:ignore -F .cvsignore . | ||
|
||
svn remove --force .cvsignore | ||
|
||
cd WEB-INF | ||
|
||
svn ps svn:ignore -F .cvsignore . | ||
|
||
svn remove --force .cvsignore | ||
|
||
cd .. | ||
|
||
cd .. | ||
|
||
ant deploy | ||
|
||
exit 0 |
Binary file not shown.