grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / classes / zune / nlist / tools / mkrelease.sh
blob43f358928bba0d5d50e115b677f463a880798769
1 #!/bin/sh
3 ############################################################################
5 # NList MUI custom classes
7 # Copyright (C) 1996-2001 by Gilles Masson (NList.mcc)
8 # Copyright (C) 1999-2001 by Carsten Scholling (NListtree.mcc)
9 # Copyright (C) 2006 by Daniel Allsopp (NBitmap.mcc)
10 # Copyright (C) 2001-2014 NList Open Source Team
12 # This library is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU Lesser General Public
14 # License as published by the Free Software Foundation; either
15 # version 2.1 of the License, or (at your option) any later version.
17 # This library is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 # Lesser General Public License for more details.
22 # NList classes Support Site: http://www.sf.net/projects/nlist-classes
24 # $Id: mkrelease.sh 513 2010-09-10 06:47:11Z thboeckel $
26 ############################################################################
28 # NList classes release build script
29 # invoke this script as "./mkrelease.sh <revision>" to build the release archives
31 if [ "$1" = "" ]; then
32 echo "no release revision specified"
33 exit
36 rm -rf "release"
37 mkdir -p "release"
38 mkdir -p "release/MCC_NList"
39 mkdir -p "release/MCC_NList/Demos"
40 mkdir -p "release/MCC_NList/Developer"
41 mkdir -p "release/MCC_NList/Developer/Autodocs"
42 mkdir -p "release/MCC_NList/Developer/Autodocs/MCC"
43 mkdir -p "release/MCC_NList/Developer/C"
44 mkdir -p "release/MCC_NList/Developer/C/Examples"
45 mkdir -p "release/MCC_NList/Developer/C/include"
46 mkdir -p "release/MCC_NList/Developer/C/include/mui"
47 mkdir -p "release/MCC_NList/Libs"
48 mkdir -p "release/MCC_NList/Libs/MUI"
49 mkdir -p "release/MCC_NList/Locale"
50 mkdir -p "release/MCC_NList/Locale/Catalogs"
52 make -C nbalance_mcc release
53 make -C nbitmap_mcc release
54 make -C nfloattext_mcc release
55 make -C nlist_mcc release
56 make -C nlisttree_mcc release
57 make -C nlistview_mcc release
58 make -C nlisttree_mcp release
59 make -C nlistviews_mcp release
60 make -C demo release
62 for os in os3 os4 mos aros-i386 aros-ppc aros-x86_64; do
63 case $os in
64 os3) fullsys="AmigaOS3";;
65 os4) fullsys="AmigaOS4";;
66 mos) fullsys="MorphOS";;
67 aros-i386) fullsys="AROS-i386";;
68 aros-ppc) fullsys="AROS-ppc";;
69 aros-x86_64) fullsys="AROS-x86_64";;
70 esac
71 mkdir -p "release/MCC_NList/Demos/$fullsys"
72 mkdir -p "release/MCC_NList/Libs/MUI/$fullsys"
73 cp -a demo/bin_$os/NBitmap-Demo "release/MCC_NList/Demos/$fullsys/"
74 cp -a nbitmap_mcc/icon.png "release/MCC_NList/Demos/$fullsys/"
75 cp -a demo/bin_$os/NList-Demo "release/MCC_NList/Demos/$fullsys/"
76 cp -a demo/bin_$os/NListtree-Demo "release/MCC_NList/Demos/$fullsys/"
77 cp -a nbalance_mcc/bin_$os/NBalance.mcc "release/MCC_NList/Libs/MUI/$fullsys/"
78 cp -a nbitmap_mcc/bin_$os/NBitmap.mcc "release/MCC_NList/Libs/MUI/$fullsys/"
79 cp -a nfloattext_mcc/bin_$os/NFloattext.mcc "release/MCC_NList/Libs/MUI/$fullsys/"
80 cp -a nlist_mcc/bin_$os/NList.mcc "release/MCC_NList/Libs/MUI/$fullsys/"
81 cp -a nlisttree_mcc/bin_$os/NListtree.mcc "release/MCC_NList/Libs/MUI/$fullsys/"
82 cp -a nlistview_mcc/bin_$os/NListview.mcc "release/MCC_NList/Libs/MUI/$fullsys/"
83 cp -a nlisttree_mcp/bin_$os/NListtree.mcp -a "release/MCC_NList/Libs/MUI/$fullsys/"
84 cp -a nlistviews_mcp/bin_$os/NListviews.mcp -a "release/MCC_NList/Libs/MUI/$fullsys/"
85 done
87 make -C nlisttree_mcp catalogs
88 for language in `ls nlisttree_mcp/locale/*.catalog`; do
89 catalog=$(basename "$language")
90 lang="${catalog%.*}"
91 mkdir -p "release/MCC_NList/Locale/Catalogs/${lang}"
92 cp -a ${language} "release/MCC_NList/Locale/Catalogs/${lang}/NListtree_mcp.catalog"
93 done
94 make -C nlistviews_mcp catalogs
95 for language in `ls nlistviews_mcp/locale/*.catalog`; do
96 catalog=$(basename "$language")
97 lang="${catalog%.*}"
98 mkdir -p "release/MCC_NList/Locale/Catalogs/${lang}"
99 cp -a ${language} "release/MCC_NList/Locale/Catalogs/${lang}/NListviews_mcp.catalog"
100 done
102 cp -a -R dist/* "release/"
103 cp -a AUTHORS ChangeLog COPYING "release/MCC_NList/"
104 cp -a docs/ReadMe "release/MCC_NList/ReadMe"
105 cp -a docs/*.doc "release/MCC_NList/Developer/Autodocs/MCC/"
106 cp -a demo/*.c "release/MCC_NList/Developer/C/Examples/"
107 cp -a demo/Makefile "release/MCC_NList/Developer/C/Examples/"
108 cp -a include/mui/NBalance_mcc.h "release/MCC_NList/Developer/C/include/mui/"
109 cp -a include/mui/NBitmap_mcc.h "release/MCC_NList/Developer/C/include/mui/"
110 cp -a include/mui/NFloattext_mcc.h "release/MCC_NList/Developer/C/include/mui/"
111 cp -a include/mui/NList_mcc.h "release/MCC_NList/Developer/C/include/mui/"
112 cp -a include/mui/NListtree_mcc.h "release/MCC_NList/Developer/C/include/mui/"
113 cp -a include/mui/NListview_mcc.h "release/MCC_NList/Developer/C/include/mui/"
114 cp -a nlisttree_mcp/locale/NListtree_mcp.pot "release/MCC_NList/Locale/"
115 cp -a nlistviews_mcp/locale/NListviews_mcp.pot "release/MCC_NList/Locale/"
117 echo " MK MCC_NList-0.$1.lha"
118 find release -nowarn -name ".svn" -exec rm -rf {} \; 2>/dev/null
119 cd release
120 lha -ao5q ../MCC_NList-0.$1.lha *
121 cp MCC_NList/ReadMe ../MCC_NList-0.$1.readme
122 cd ..