X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=autobuild%2FMakefile;fp=autobuild%2FMakefile;h=c0f2f6d8a2deb146622be215242eb020df8793a7;hb=a095981e18cc37a8ecc7cd237cc22b9c10329264;hp=0000000000000000000000000000000000000000;hpb=9459638ad6797b8139f1e9f0715c96076dbf0890;p=synfig.git diff --git a/autobuild/Makefile b/autobuild/Makefile new file mode 100644 index 0000000..c0f2f6d --- /dev/null +++ b/autobuild/Makefile @@ -0,0 +1,92 @@ + +VERSION=0.61.03 + +COREDIR=synfig-core +STUDIODIR=synfig-studio +ETLDIR=etl + +OUTPUTDIR=output + +SRCPKG=Synfig.mpkg +OUTPKG=$(OUTPUTDIR)/Synfig-$(VERSION).mpkg +PKGDIR=$(OUTPKG)/Contents/Packages + +SSH_USER=darco@www.bridgetone.com +SSH_DIR=~/voria/files + +all: src osx package + +publish: + cd $(OUTPUTDIR) && tar c *.gz *.zip *.exe *.bz2 | ssh $(SSH_USER) "cd $(SSH_DIR) && tar xv" + +osx-pkg: + rm -fr $(OUTPKG) + rm -fr $(OUTPKG).zip + cp -R $(SRCPKG) $(OUTPKG) + cp -r $(OUTPUTDIR)/*.pkg $(PKGDIR) + cd $(OUTPUTDIR) && zip -r Synfig-$(VERSION).mpkg.zip *.mpkg + +core-osx: + [ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR) + rm -fr $(COREDIR) + svn export https://svn.voria.com/code/synfig-core/trunk $(COREDIR) || exit 2 + cd $(COREDIR) && ./macosxbuild.sh + cp -r $(COREDIR)/macosxbuild/*.pkg $(OUTPUTDIR) + +studio-osx: + [ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR) + rm -fr $(STUDIODIR) + svn export https://svn.voria.com/code/synfig-studio/trunk $(STUDIODIR) || exit 2 + cd $(STUDIODIR) && ./macosxbuild.sh + cp -r $(STUDIODIR)/macosxbuild/*.pkg $(OUTPUTDIR) + +core-w32: + [ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR) + rm -fr $(COREDIR) + svn export https://svn.voria.com/code/synfig-core/trunk $(COREDIR) || exit 2 + cd $(COREDIR) && ./win32build.sh + cp -r $(COREDIR)/win32build/*.exe $(OUTPUTDIR) + +studio-w32: + [ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR) + rm -fr $(STUDIODIR) + svn export https://svn.voria.com/code/synfig-studio/trunk $(STUDIODIR) || exit 2 + cd $(STUDIODIR) && ./win32build.sh + cp -r $(STUDIODIR)/win32build/*.exe $(OUTPUTDIR) + +core-src: + [ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR) + rm -fr $(COREDIR) + svn export https://svn.voria.com/code/synfig-core/trunk $(COREDIR) || exit 2 + cd $(COREDIR) && libtoolize --ltdl --copy --force && autoreconf --force --install && ./configure + make -C $(COREDIR) dist + cp -r $(COREDIR)/*.gz $(OUTPUTDIR) + +studio-src: + [ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR) + rm -fr $(STUDIODIR) + svn export https://svn.voria.com/code/synfig-studio/trunk $(STUDIODIR) || exit 2 + cd $(STUDIODIR) && autoreconf --force --install && ./configure + make -C $(STUDIODIR) dist + cp -r $(STUDIODIR)/*.gz $(OUTPUTDIR) + +etl-src: + [ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR) + rm -fr $(ETLDIR) + svn export https://svn.voria.com/code/ETL/trunk $(ETLDIR) || exit 2 + cd $(ETLDIR) && autoreconf --force --install && ./configure + make -C $(ETLDIR) dist + cp -r $(ETLDIR)/*.gz $(OUTPUTDIR) + +src: etl-src core-src studio-src + +osx: core-osx studio-osx + +w32: core-w32 studio-w32 + +clean: + rm -fr $(COREDIR) + rm -fr $(STUDIODIR) + rm -fr $(ETLDIR) + rm -fr $(OUTPUTDIR) +