create one Makefile in the top root directory (WIP - need to remove build path from resulting archives)

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@563 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Pavol Rusnak
2009-09-04 16:10:50 +00:00
parent 5df494c2b6
commit 4043d459dd
13 changed files with 20 additions and 71 deletions

View File

@@ -1,12 +0,0 @@
ZIP = zip
PACKAGE = svgedit-2.3
FILEMASK = \*.html \*.css \*.js \*.txt \*.png \*.jpg \*.gif \*.svg \*.xml \*.manifest \*.rdf \*.xul
clean:
rm -f *.*~
rm -rf ./content/editor/
all: clean
rm -f $(PACKAGE).xpi
cp -r ../editor ./content/
$(ZIP) $(PACKAGE).xpi -r . -i $(FILEMASK)

View File

@@ -1,8 +0,0 @@
#!/bin/sh
DST="content/editor"
if [ -e "${DST}" ]; then
rm -rf "${DST}"
fi
cp -R ../editor content/
SVNS=`find content/editor -name '.svn'`
rm -rf ${SVNS}

View File

@@ -1,2 +1,2 @@
content SVG-edit content/ content svg-edit content/
overlay chrome://browser/content/browser.xul chrome://SVG-edit/content/SVG-edit-overlay.xul overlay chrome://browser/content/browser.xul chrome://svg-edit/content/svg-edit-overlay.xul

View File

@@ -1,6 +0,0 @@
function start_svg_edit() {
var url = "chrome://SVG-edit/content/editor/svg-editor.html";
window.openDialog(url, "SVG Editor",
"width=1024,height=700,menubar=no,toolbar=no");
}

View File

@@ -0,0 +1,4 @@
function start_svg_edit() {
var url = "chrome://svg-edit/content/editor/svg-editor.html";
window.openDialog(url, "SVG Editor", "width=1024,height=700,menubar=no,toolbar=no");
}

View File

@@ -4,7 +4,7 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript" <script type="application/x-javascript"
src="chrome://SVG-edit/content/SVG-edit-overlay.js" /> src="chrome://svg-edit/content/svg-edit-overlay.js" />
<menupopup id="menu_ToolsPopup"> <menupopup id="menu_ToolsPopup">
<menuitem insertafter="devToolsSeparator" label="SVG Editor" <menuitem insertafter="devToolsSeparator" label="SVG Editor"

View File

@@ -23,11 +23,11 @@ $(function() {
if(!file) if(!file)
return(null); return(null);
var inputStream = Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance(Components.interfaces.nsIFileInputStream); var inputStream = Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance(Components.interfaces.nsIFileInputStream);
inputStream.init(file, 0x01, 00004, null); inputStream.init(file, 0x01, 00004, null);
var sInputStream = Components.classes["@mozilla.org/scriptableinputstream;1"].createInstance(Components.interfaces.nsIScriptableInputStream); var sInputStream = Components.classes["@mozilla.org/scriptableinputstream;1"].createInstance(Components.interfaces.nsIScriptableInputStream);
sInputStream.init(inputStream); sInputStream.init(inputStream);
svgCanvas.setSvgString(sInputStream. svgCanvas.setSvgString(sInputStream.
read(sInputStream.available())); read(sInputStream.available()));
} catch(e) { } catch(e) {
console.log("Exception while attempting to load" + e); console.log("Exception while attempting to load" + e);

View File

@@ -7,7 +7,7 @@
<Description about="urn:mozilla:install-manifest"> <Description about="urn:mozilla:install-manifest">
<!-- required properties --> <!-- required properties -->
<em:id>svg-edit@googlegroups.com</em:id> <em:id>svg-edit@googlegroups.com</em:id>
<em:version>2.2</em:version> <em:version>2.3</em:version>
<em:type>2</em:type> <em:type>2</em:type>
<em:targetApplication> <em:targetApplication>
<Description> <Description>

View File

@@ -1,4 +0,0 @@
#!/bin/sh
./build.sh
zip -r ../svg-edit.xpi *

View File

@@ -1,13 +0,0 @@
#!/bin/sh
YUI=yuicompressor-*.jar
# minify spin button
java -jar $YUI editor/spinbtn/JQuerySpinBtn.js > editor/spinbtn/JQuerySpinBtn.min.js
# minify SVG-edit files
java -jar $YUI editor/svg-editor.js > editor/svg-editor.min.js
java -jar $YUI editor/svgcanvas.js > editor/svgcanvas.min.js
# CSS files do not work remotely
# java -jar $YUI editor/spinbtn/JQuerySpinBtn.css > editor/spinbtn/JQuerySpinBtn.min.css
# java -jar $YUI editor/svg-editor.css > editor/svg-editor.min.css

View File

@@ -1,12 +0,0 @@
ZIP = zip
PACKAGE = svgedit-2.3
FILEMASK = \*.html \*.css \*.js \*.txt \*.png \*.jpg \*.gif \*.svg \*.xml
clean:
rm -f *.*~
rm -rf ./editor/
all: clean
rm -f $(PACKAGE).wgt
cp -r ../editor .
$(ZIP) $(PACKAGE).wgt -r . -i $(FILEMASK)

View File

@@ -8,7 +8,7 @@
<height>600</height> <height>600</height>
<id> <id>
<name>SVG Edit</name> <name>SVG Edit</name>
<revised>2009-08</revised> <revised>2009-09</revised>
</id> </id>
<feature name="http://xmlns.opera.com/fileio"> <feature name="http://xmlns.opera.com/fileio">
<param name="folderhint" value="home" /> <param name="folderhint" value="home" />