Merged in v 26.12.
[AROS-Contrib.git] / mui / classes / thebar / tools / mkrelease.sh
blob6008c7f37722810696bddcc4cbe41bbf2293154b
1 #!/bin/sh
3 ############################################################################
5 # TheBar.mcc - Next Generation Toolbar MUI Custom Class
6 # Copyright (C) 2003-2005 Alfonso Ranieri
7 # Copyright (C) 2005-2013 by TheBar.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 # TheBar class Support Site: http://www.sf.net/projects/thebar
21 # $Id$
23 ############################################################################
25 # TheBar.mcc release build script
26 # invoke this script as "./mkrelease.sh" to build the release archives
28 rm -rf "release"
29 mkdir -p "release"
30 mkdir -p "release/MCC_TheBar"
31 mkdir -p "release/MCC_TheBar/Demos"
32 mkdir -p "release/MCC_TheBar/Demos/pics"
33 mkdir -p "release/MCC_TheBar/Developer"
34 mkdir -p "release/MCC_TheBar/Developer/Autodocs"
35 mkdir -p "release/MCC_TheBar/Developer/Autodocs/MCC"
36 mkdir -p "release/MCC_TheBar/Developer/C"
37 mkdir -p "release/MCC_TheBar/Developer/C/Examples"
38 mkdir -p "release/MCC_TheBar/Developer/C/Examples/b2chunky"
39 mkdir -p "release/MCC_TheBar/Developer/C/include"
40 mkdir -p "release/MCC_TheBar/Developer/C/include/mui"
41 mkdir -p "release/MCC_TheBar/Docs"
42 mkdir -p "release/MCC_TheBar/Libs"
43 mkdir -p "release/MCC_TheBar/Libs/MUI"
44 mkdir -p "release/MCC_TheBar/Locale"
45 mkdir -p "release/MCC_TheBar/Locale/Catalogs"
46 mkdir -p "release/MCC_TheBar/Tools"
48 make -C mcc release
49 make -C mcc/button release
50 make -C mcp release
51 make -C demo release
53 for os in os3 os4 mos aros-i386 aros-ppc aros-x86_64; do
54 case $os in
55 os3) fullsys="AmigaOS3";;
56 os4) fullsys="AmigaOS4";;
57 mos) fullsys="MorphOS";;
58 aros-i386) fullsys="AROS-i386";;
59 aros-ppc) fullsys="AROS-ppc";;
60 aros-x86_64) fullsys="AROS-x86_64";;
61 esac
62 mkdir -p "release/MCC_TheBar/Libs/MUI/$fullsys"
63 cp -a demo/bin_$os/demo1 "release/MCC_TheBar/Demos/demo1-$fullsys"
64 cp -a demo/bin_$os/demo2 "release/MCC_TheBar/Demos/demo2-$fullsys"
65 cp -a demo/bin_$os/demo3 "release/MCC_TheBar/Demos/demo3-$fullsys"
66 cp -a demo/bin_$os/demo4 "release/MCC_TheBar/Demos/demo4-$fullsys"
67 cp -a demo/bin_$os/demo5 "release/MCC_TheBar/Demos/demo5-$fullsys"
68 cp -a demo/bin_$os/demo6 "release/MCC_TheBar/Demos/demo6-$fullsys"
69 cp -a demo/bin_$os/demo7 "release/MCC_TheBar/Demos/demo7-$fullsys"
70 cp -a demo/bin_$os/demo8 "release/MCC_TheBar/Demos/demo8-$fullsys"
71 cp -a demo/bin_$os/demo9 "release/MCC_TheBar/Demos/demo9-$fullsys"
72 cp -a demo/bin_$os/demo10 "release/MCC_TheBar/Demos/demo10-$fullsys"
73 cp -a mcc/bin_$os/TheBar.mcc "release/MCC_TheBar/Libs/MUI/$fullsys/"
74 cp -a mcc/bin_$os/TheBarVirt.mcc "release/MCC_TheBar/Libs/MUI/$fullsys/"
75 cp -a mcc/button/bin_$os/TheButton.mcc "release/MCC_TheBar/Libs/MUI/$fullsys/"
76 cp -a mcp/bin_$os/TheBar.mcp -a "release/MCC_TheBar/Libs/MUI/$fullsys/"
77 done
79 make -C mcp catalogs
80 for language in czech french german greek italian polish swedish turkish; do
81 mkdir -p "release/MCC_TheBar/Locale/Catalogs/$language"
82 cp -a mcp/locale/$language.catalog "release/MCC_TheBar/Locale/Catalogs/$language/TheBar_mcp.catalog"
83 done
85 cp -a -R dist/* "release/"
86 cp -a AUTHORS ChangeLog COPYING "release/MCC_TheBar/"
87 cp -a doc/MCC_TheBar.readme "release/MCC_TheBar/ReadMe"
88 cp -a demo/pics/* "release/MCC_TheBar/Demos/pics/"
89 cp -a doc/MCC_TheBar.readme "release/MCC_TheBar/Docs/"
90 cp -a doc/b2chunky.doc "release/MCC_TheBar/Docs/"
91 cp -a doc/fkeys.doc "release/MCC_TheBar/Docs/"
92 cp -a doc/MCC_TheBar.doc "release/MCC_TheBar/Developer/Autodocs/MCC/"
93 cp -a demo/*.c "release/MCC_TheBar/Developer/C/Examples/"
94 cp -a demo/*.h "release/MCC_TheBar/Developer/C/Examples/"
95 cp -a demo/Makefile "release/MCC_TheBar/Developer/C/Examples/"
96 cp -a demo/b2chunky/* "release/MCC_TheBar/Developer/C/Examples/b2chunky/"
97 cp -a include/mui/TheBar_mcc.h "release/MCC_TheBar/Developer/C/include/mui/"
98 cp -a mcp/locale/TheBar_mcp.cd "release/MCC_TheBar/Locale/"
100 releasever=`grep "#define LIB_VERSION" mcc/version.h | awk '{ print $3 }'`
101 releaserev=`grep "#define LIB_REVISION" mcc/version.h | awk '{ print $3 }'`
103 echo " MK MCC_TheBar-$releasever.$releaserev.lha"
104 find release -nowarn -name ".svn" -exec rm -rf {} \; 2>/dev/null
105 cd release
106 rm -f ../MCC_TheBar-$releasever.$releaserev.lha
107 lha -ao5q ../MCC_TheBar-$releasever.$releaserev.lha *
108 cp MCC_TheBar/ReadMe ../MCC_TheBar-$releasever.$releaserev.readme
109 cd ..