3 ############################################################################
5 # TextEditor.mcc - Textediting MUI Custom Class
6 # Copyright (C) 1997-2000 Allan Odgaard
7 # Copyright (C) 2005-2014 TextEditor.mcc Open Source Team
9 # This library is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU Lesser General Public
11 # License as published by the Free Software Foundation; either
12 # version 2.1 of the License, or (at your option) any later version.
14 # This library is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # Lesser General Public License for more details.
19 # TextEditor class Support Site: http://www.sf.net/projects/texteditor-mcc
21 # $Id: mkrelease.sh 741 2010-09-01 19:43:34Z damato $
23 ############################################################################
25 # TextEditor.mcc release build script
26 # invoke this script as "./mkrelease.sh" to build the release archives
30 mkdir
-p "release/MCC_TextEditor"
31 mkdir
-p "release/MCC_TextEditor/Demos"
32 mkdir
-p "release/MCC_TextEditor/Demos/Rexx"
33 mkdir
-p "release/MCC_TextEditor/Developer"
34 mkdir
-p "release/MCC_TextEditor/Developer/Autodocs"
35 mkdir
-p "release/MCC_TextEditor/Developer/Autodocs/MCC"
36 mkdir
-p "release/MCC_TextEditor/Developer/C"
37 mkdir
-p "release/MCC_TextEditor/Developer/C/Examples"
38 mkdir
-p "release/MCC_TextEditor/Developer/C/include"
39 mkdir
-p "release/MCC_TextEditor/Developer/C/include/mui"
40 mkdir
-p "release/MCC_TextEditor/Docs"
41 mkdir
-p "release/MCC_TextEditor/Libs"
42 mkdir
-p "release/MCC_TextEditor/Libs/MUI"
43 mkdir
-p "release/MCC_TextEditor/Locale"
44 mkdir
-p "release/MCC_TextEditor/Locale/Catalogs"
50 for os
in os3 os4 mos aros-i386 aros-ppc aros-x86_64
; do
52 os3
) fullsys
="AmigaOS3";;
53 os4
) fullsys
="AmigaOS4";;
54 mos
) fullsys
="MorphOS";;
55 aros-i386
) fullsys
="AROS-i386";;
56 aros-ppc
) fullsys
="AROS-ppc";;
57 aros-x86_64
) fullsys
="AROS-x86_64";;
59 mkdir
-p "release/MCC_TextEditor/Libs/MUI/$fullsys"
60 cp -a demo
/bin_
$os/TextEditor-Demo
"release/MCC_TextEditor/Demos/TextEditor-Demo-$fullsys"
61 cp -a dist
/MCC_TextEditor
/Demos
/TextEditor-Demo.info
"release/MCC_TextEditor/Demos/TextEditor-Demo-$fullsys.info"
62 cp -a mcc
/bin_
$os/TextEditor.mcc
"release/MCC_TextEditor/Libs/MUI/$fullsys/"
63 cp -a mcp
/bin_
$os/TextEditor.mcp
-a "release/MCC_TextEditor/Libs/MUI/$fullsys/"
67 for language
in `ls mcp/locale/*.catalog`; do
68 catalog
=$
(basename "$language")
70 mkdir
-p "release/MCC_TextEditor/Locale/Catalogs/${lang}"
71 cp -a ${language} "release/MCC_TextEditor/Locale/Catalogs/${lang}/TextEditor_mcp.catalog"
74 cp -a -R dist
/* "release/"
75 rm "release/MCC_TextEditor/Demos/TextEditor-Demo.info"
76 cp -a AUTHORS ChangeLog COPYING
"release/MCC_TextEditor/"
77 cp -a doc
/MCC_TextEditor.readme
"release/MCC_TextEditor/ReadMe"
78 cp -a demo
/*.ilbm
"release/MCC_TextEditor/Demos/"
79 cp -a -R demo
/rexx
/* "release/MCC_TextEditor/Demos/Rexx/"
80 cp -a doc
/MCC_TextEditor.doc
"release/MCC_TextEditor/Developer/Autodocs/MCC/"
81 cp -a demo
/*.c
"release/MCC_TextEditor/Developer/C/Examples/"
82 cp -a demo
/Makefile
"release/MCC_TextEditor/Developer/C/Examples/"
83 cp -a include
/mui
/TextEditor_mcc.h
"release/MCC_TextEditor/Developer/C/include/mui/"
84 cp -a doc
/MCC_TextEditor.guide
"release/MCC_TextEditor/Docs/"
85 cp -a mcp
/locale
/TextEditor_mcp.pot
"release/MCC_TextEditor/Locale/"
87 releasever
=`grep "#define LIB_VERSION" mcc/version.h | awk '{ print $3 }'`
88 releaserev
=`grep "#define LIB_REVISION" mcc/version.h | awk '{ print $3 }'`
90 echo " MK MCC_TextEditor-$releasever.$releaserev.lha"
91 find release
-nowarn -name ".svn" -exec rm -rf {} \
; 2>/dev
/null
93 rm -f ..
/MCC_TextEditor-
$releasever.
$releaserev.lha
94 lha
-ao5q ..
/MCC_TextEditor-
$releasever.
$releaserev.lha
*
95 cp MCC_TextEditor
/ReadMe ..
/MCC_TextEditor-
$releasever.
$releaserev.readme