3 ############################################################################
5 # BetterString.mcc - A better String gadget MUI Custom Class
6 # Copyright (C) 1997-2000 Allan Odgaard
7 # Copyright (C) 2005-2013 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/MCC_BetterString"
31 mkdir
-p "release/MCC_BetterString/Developer"
32 mkdir
-p "release/MCC_BetterString/Developer/Autodocs"
33 mkdir
-p "release/MCC_BetterString/Developer/Autodocs/MCC"
34 mkdir
-p "release/MCC_BetterString/Developer/C"
35 mkdir
-p "release/MCC_BetterString/Developer/C/include"
36 mkdir
-p "release/MCC_BetterString/Developer/C/include/mui"
37 mkdir
-p "release/MCC_BetterString/Libs"
38 mkdir
-p "release/MCC_BetterString/Libs/MUI"
39 mkdir
-p "release/MCC_BetterString/Locale"
40 mkdir
-p "release/MCC_BetterString/Locale/Catalogs"
43 make -C mcc
/hotkeystring release
46 for os
in os3 os4 mos aros-i386 aros-ppc aros-x86_64
; do
48 os3
) fullsys
="AmigaOS3";;
49 os4
) fullsys
="AmigaOS4";;
50 mos
) fullsys
="MorphOS";;
51 aros-i386
) fullsys
="AROS-i386";;
52 aros-ppc
) fullsys
="AROS-ppc";;
53 aros-x86_64
) fullsys
="AROS-x86_64";;
55 mkdir
-p "release/MCC_BetterString/Libs/MUI/$fullsys"
56 cp -a mcc
/bin_
$os/BetterString.mcc
"release/MCC_BetterString/Libs/MUI/$fullsys/"
57 cp -a mcc
/hotkeystring
/bin_
$os/HotkeyString.mcc
"release/MCC_BetterString/Libs/MUI/$fullsys/"
58 cp -a mcp
/bin_
$os/BetterString.mcp
-a "release/MCC_BetterString/Libs/MUI/$fullsys/"
62 for language
in `ls mcp/locale/*.catalog`; do
63 catalog
=$
(basename "$language")
65 mkdir
-p "release/MCC_BetterString/Locale/Catalogs/${lang}"
66 cp -a ${language} "release/MCC_BetterString/Locale/Catalogs/${lang}/BetterString_mcp.catalog"
69 cp -a -R dist
/* "release/"
70 cp -a AUTHORS ChangeLog COPYING
"release/MCC_BetterString/"
71 cp -a doc
/MCC_BetterString.readme
"release/MCC_BetterString/ReadMe"
72 cp -a doc
/MCC_BetterString.doc
"release/MCC_BetterString/Developer/Autodocs/MCC/"
73 cp -a doc
/MCC_HotkeyString.doc
"release/MCC_BetterString/Developer/Autodocs/MCC/"
74 cp -a include
/mui
/BetterString_mcc.h
"release/MCC_BetterString/Developer/C/include/mui/"
75 cp -a include
/mui
/HotkeyString_mcc.h
"release/MCC_BetterString/Developer/C/include/mui/"
76 cp -a mcp
/locale
/BetterString_mcp.pot
"release/MCC_BetterString/Locale/"
78 releasever
=`grep "#define LIB_VERSION" mcc/version.h | awk '{ print $3 }'`
79 releaserev
=`grep "#define LIB_REVISION" mcc/version.h | awk '{ print $3 }'`
81 echo " MK MCC_BetterString-$releasever.$releaserev.lha"
82 find release
-nowarn -name ".svn" -exec rm -rf {} \
; 2>/dev
/null
84 lha
-ao5q ..
/MCC_BetterString-
$releasever.
$releaserev.lha
*
85 cp MCC_BetterString
/ReadMe ..
/MCC_BetterString-
$releasever.
$releaserev.readme