Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
further work on packaging: now PaintWeb loads properly when packaged.…
… assorted code fixes, fixed the swapFillStroke command, got the jsdoc API reference almost ready for prime time, and more. --HG-- extra : convert_revision : svn%3Afc1ba2b4-ac28-11dd-a772-7fcde58d38e6/trunk%4056
- Loading branch information
mihai.sucan
committed
Jul 1, 2009
1 parent
88c2e57
commit ce30dac
Showing
18 changed files
with
316 additions
and
191 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
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
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,82 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (C) 2008, 2009 Mihai Şucan | ||
# | ||
# This file is part of PaintWeb. | ||
# | ||
# PaintWeb is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# PaintWeb is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with PaintWeb. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
# $URL: http://code.google.com/p/paintweb $ | ||
# $Date: 2009-07-01 21:57:39 +0300 $ | ||
|
||
shopt -s nullglob | ||
|
||
SRC_FOLDER="$1" | ||
DOC_FOLDER="$2" | ||
|
||
# Make sure you point to your jsdoc-toolkit installation folder | ||
JSDOC_FOLDER="${HOME}/src/jsdoc-toolkit" | ||
JSDOC_JAR="${JSDOC_FOLDER}/jsrun.jar" | ||
JSDOC_JS="${JSDOC_FOLDER}/app/run.js" | ||
JSDOC_TEMPLATE="${JSDOC_FOLDER}/templates/jsdoc" | ||
|
||
if [[ ! -d "$SRC_FOLDER" ]] | ||
then | ||
echo "The source folder does not exist: $SRC_FOLDER" | ||
exit 1 | ||
fi | ||
|
||
if [[ ! -d "$JSDOC_FOLDER" ]] | ||
then | ||
echo "The JSDoc folder does not exist: $JSDOC_FOLDER" | ||
exit 1 | ||
fi | ||
|
||
if [[ ! -f "$JSDOC_JAR" ]] | ||
then | ||
echo "The JSDoc-Toolkit .jar file does not exist!" | ||
exit 1 | ||
fi | ||
|
||
if [[ ! -f "$JSDOC_JS" ]] | ||
then | ||
echo "The JSDoc-Toolkit run.js file does not exist!" | ||
exit 1 | ||
fi | ||
|
||
if [[ ! -d "$JSDOC_TEMPLATE" ]] | ||
then | ||
echo "The JSDoc-Toolkit template folder does not exist: $JSDOC_TEMPLATE" | ||
exit 1 | ||
fi | ||
|
||
mkdir -p "$DOC_FOLDER" | ||
|
||
# Simple cleanup | ||
cd "$DOC_FOLDER" | ||
rm *html *css *js | ||
symbols/*html \ | ||
symbols/*css \ | ||
symbos/*js \ | ||
symbols/src/*html \ | ||
symbols/src/*css \ | ||
symbos/src/*js | ||
|
||
cd - | ||
|
||
java -jar "$JSDOC_JAR" "$JSDOC_JS" -r=10 -a -p -t=${JSDOC_TEMPLATE} \ | ||
-d=${DOC_FOLDER} "$SRC_FOLDER" | ||
|
||
# vim:set spell spl=en fo=wan1croql tw=80 ts=2 sw=2 sts=0 sta noet ai cin fenc=utf-8 ff=unix: | ||
|
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
Oops, something went wrong.