From 2eea448e9a5581c4bf0f72b33af60244d8524710 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 21 Aug 2009 14:03:39 +0000 Subject: [PATCH] replaced scripts with makefile (call make all to build) git-svn-id: http://svg-edit.googlecode.com/svn/trunk@432 eee81c28-f429-11dd-99c0-75d572ba1ddd --- firefox-extension/Makefile | 12 ++++++++++++ firefox-extension/build.sh | 8 -------- firefox-extension/mk_xpi.sh | 4 ---- opera-widget/Makefile | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 firefox-extension/Makefile delete mode 100755 firefox-extension/build.sh delete mode 100755 firefox-extension/mk_xpi.sh diff --git a/firefox-extension/Makefile b/firefox-extension/Makefile new file mode 100644 index 00000000..707018c5 --- /dev/null +++ b/firefox-extension/Makefile @@ -0,0 +1,12 @@ +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) diff --git a/firefox-extension/build.sh b/firefox-extension/build.sh deleted file mode 100755 index b4b5c48e..00000000 --- a/firefox-extension/build.sh +++ /dev/null @@ -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} diff --git a/firefox-extension/mk_xpi.sh b/firefox-extension/mk_xpi.sh deleted file mode 100755 index 2da358e6..00000000 --- a/firefox-extension/mk_xpi.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -./build.sh -zip -r ../svg-edit.xpi * diff --git a/opera-widget/Makefile b/opera-widget/Makefile index 84deba88..05df4975 100644 --- a/opera-widget/Makefile +++ b/opera-widget/Makefile @@ -6,7 +6,7 @@ clean: rm -f *.*~ rm -rf ./editor/ -widget: clean +all: clean rm -f $(PACKAGE).wgt cp -r ../editor . $(ZIP) $(PACKAGE).wgt -r . -i $(FILEMASK)