diff options
author | Lluis Sanchez Gual <lluis@novell.com> | 2011-02-25 16:50:11 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2011-02-25 16:55:54 +0300 |
commit | 950b4a632d8a809cda1dd2b0abe2bb1e9e985ff4 (patch) | |
tree | f84503c40eec970023673f41d8e4ba8536a2debf /Makefile.am | |
parent | 70b898e9694055a61eb25b23e0d63943409b7034 (diff) |
Add package generation scripts and some support files.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 48c0d5b..8814ba4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,3 +2,43 @@ SUBDIRS = Mono.Addins Mono.Addins.CecilReflector Mono.Addins.Setup Mono.Addins.MSBuild Mono.Addins.Gui mautil Test docs EXTRA_DIST = COPYING mono-addins.snk + +SRC_PACKAGE_DIR=Mono.Addins-source-@VERSION@ +BIN_PACKAGE_DIR=Mono.Addins-binary-@VERSION@ + +src-zip: + rm -rf $(SRC_PACKAGE_DIR) + rm -f $(SRC_PACKAGE_DIR).zip + mkdir $(SRC_PACKAGE_DIR) + mdtool project-export Mono.Addins.sln -f:"MSBuild (Visual Studio 2008)" -d:$(SRC_PACKAGE_DIR) -p:mautil -p:Mono.Addins -p:Mono.Addins.CecilReflector -p:Mono.Addins.Setup + mdtool project-export Samples/HelloWorld/HelloWorld.sln -f:"MSBuild (Visual Studio 2008)" -d:$(SRC_PACKAGE_DIR)/Samples/HelloWorld + mdtool project-export Samples/HelloWorldWithManifest/HelloWorldWithManifest.sln -f:"MSBuild (Visual Studio 2008)" -d:$(SRC_PACKAGE_DIR)/Samples/HelloWorldWithManifest + mdtool project-export Samples/TextEditorSWF/TextEditorSWF.sln -f:"MSBuild (Visual Studio 2008)" -d:$(SRC_PACKAGE_DIR)/Samples/TextEditorSWF + cp support/README-src $(SRC_PACKAGE_DIR)/README.txt + cp AUTHORS $(SRC_PACKAGE_DIR)/AUTHORS.txt + cp COPYING $(SRC_PACKAGE_DIR)/COPYING.txt + unix2dos $(SRC_PACKAGE_DIR)/README.txt + unix2dos $(SRC_PACKAGE_DIR)/AUTHORS.txt + unix2dos $(SRC_PACKAGE_DIR)/COPYING.txt + rm -rf $(SRC_PACKAGE_DIR)/Test + rm $(SRC_PACKAGE_DIR)/configure.ac + cd $(SRC_PACKAGE_DIR) && for fi in `find . -name Makefile.am`; do rm $$fi; done + cd $(SRC_PACKAGE_DIR) && zip -r ../$(SRC_PACKAGE_DIR).zip * + +bin-zip: + rm -rf $(BIN_PACKAGE_DIR) + rm -f $(BIN_PACKAGE_DIR).zip + mkdir $(BIN_PACKAGE_DIR) + cp support/README-bin $(BIN_PACKAGE_DIR)/README.txt + cp AUTHORS $(BIN_PACKAGE_DIR)/AUTHORS.txt + cp COPYING $(BIN_PACKAGE_DIR)/COPYING.txt + unix2dos $(BIN_PACKAGE_DIR)/README.txt + unix2dos $(BIN_PACKAGE_DIR)/AUTHORS.txt + unix2dos $(BIN_PACKAGE_DIR)/COPYING.txt + cp bin/mautil.exe $(BIN_PACKAGE_DIR) + cp bin/Mono.Addins.dll $(BIN_PACKAGE_DIR) + cp bin/Mono.Addins.Setup.dll $(BIN_PACKAGE_DIR) + cp bin/Mono.Addins.CecilReflector.dll $(BIN_PACKAGE_DIR) + cp support/ICSharpCode.SharpZipLib.license.txt $(BIN_PACKAGE_DIR) + cp support/ICSharpCode.SharpZipLib.dll $(BIN_PACKAGE_DIR) + cd $(BIN_PACKAGE_DIR) && zip -r ../$(BIN_PACKAGE_DIR).zip * |