3 ############################################################################
5 # BetterString.mcc - A better String gadget MUI Custom Class
6 # Copyright (C) 1997-2000 Allan Odgaard
7 # Copyright (C) 2005-2009 by BetterString.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 # BetterString class Support Site: http://www.sf.net/projects/bstring-mcc/
23 ############################################################################
25 # BetterString.mcc release build script
26 # invoke this script as "./mkrelease.sh" to build the release archives
30 mkdir
-p "release/codesets"
31 mkdir
-p "release/codesets/Charsets"
32 mkdir
-p "release/codesets/Demos"
33 mkdir
-p "release/codesets/Developer"
34 mkdir
-p "release/codesets/Developer/Autodocs"
35 mkdir
-p "release/codesets/Developer/Examples"
36 mkdir
-p "release/codesets/Developer/fd"
37 mkdir
-p "release/codesets/Developer/include"
38 mkdir
-p "release/codesets/Developer/sfd"
39 mkdir
-p "release/codesets/Developer/xml"
40 mkdir
-p "release/codesets/Libs"
43 make -C developer
/examples release
45 for os
in os3 os4 mos aros-i386 aros-ppc aros-x86_64
; do
47 os3
) fullsys
="AmigaOS3";;
48 os4
) fullsys
="AmigaOS4";;
49 mos
) fullsys
="MorphOS";;
50 aros-i386
) fullsys
="AROS-i386";;
51 aros-ppc
) fullsys
="AROS-ppc";;
52 aros-x86_64
) fullsys
="AROS-x86_64";;
54 mkdir
-p "release/codesets/Demos/$fullsys"
55 for demo
in b64d b64e Convert demo1 DetectCodeset UTF8ToStrHook
; do
56 cp -a developer
/examples
/bin_
$os/$demo "release/codesets/Demos/$fullsys/"
58 mkdir
-p "release/codesets/Libs/$fullsys"
59 cp -a src
/bin_
$os/codesets.library
"release/codesets/Libs/$fullsys/"
62 cp -a -R dist
/* "release/"
63 cp -a AUTHORS ChangeLog COPYING
"release/codesets/"
64 cp -a charsets
/* "release/codesets/Charsets/"
65 cp -a developer
/docs
/* "release/codesets/Developer/Autodocs/"
66 cp -a developer
/examples
/*.c
"release/codesets/Developer/Examples/"
67 cp -a developer
/examples
/Makefile
"release/codesets/Developer/Examples/"
68 cp -a developer
/examples
/mmakefile.src
"release/codesets/Developer/Examples/"
69 cp -a developer
/fd
/* "release/codesets/Developer/fd/"
70 cp -a -R developer
/include
/* "release/codesets/Developer/include/"
71 cp -a developer
/sfd
/* "release/codesets/Developer/sfd/"
72 cp -a developer
/xml
/* "release/codesets/Developer/xml/"
74 releasever
=`grep "#define LIB_VERSION" src/version.h | awk '{ print $3 }'`
75 releaserev
=`grep "#define LIB_REVISION" src/version.h | awk '{ print $3 }'`
77 echo " MK codesets-$releasever.$releaserev.lha"
78 find release
-nowarn -name ".svn" -exec rm -rf {} \
; 2>/dev
/null
79 find release
-nowarn -name "mmakefile.src" -exec rm -rf {} \
; 2>/dev
/null
81 lha
-ao5q ..
/codesets-
$releasever.
$releaserev.lha
*
82 cp codesets
/ReadMe ..
/codesets-
$releasever.
$releaserev.readme