Provide additional licenses to all of my changes.
[AROS.git] / external / openurl / tools / mkrelease.sh
blob1b2047d55d6fe6c41007fffffdaa0d4079b2eda0
1 #!/bin/sh
2 #/***************************************************************************
4 # openurl.library - universal URL display and browser launcher library
5 # Copyright (C) 1998-2005 by Troels Walsted Hansen, et al.
6 # Copyright (C) 2005-2013 by openurl.library Open Source Team
8 # This library is free software; it has been placed in the public domain
9 # and you can freely redistribute it and/or modify it. Please note, however,
10 # that some components may be under the LGPL or GPL license.
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 # openurl.library project: http://sourceforge.net/projects/openurllib/
18 # $Id: AUTHORS 102 2009-05-27 22:22:46Z marust $
20 #***************************************************************************/
22 # openurl.library release build script
23 # invoke this script as "./mkrelease.sh" to build the release archives
25 rm -rf "release"
26 mkdir -p "release"
27 mkdir -p "release/OpenURL"
28 mkdir -p "release/OpenURL/C"
29 mkdir -p "release/OpenURL/Libs"
30 mkdir -p "release/OpenURL/Prefs"
31 mkdir -p "release/OpenURL/Catalogs"
32 mkdir -p "release/OpenURL/Developer"
33 mkdir -p "release/OpenURL/Developer/Autodocs"
34 mkdir -p "release/OpenURL/Developer/C"
35 mkdir -p "release/OpenURL/Developer/C/include"
36 mkdir -p "release/OpenURL/Developer/fd"
37 mkdir -p "release/OpenURL/Developer/sfd"
38 mkdir -p "release/OpenURL/Developer/xml"
40 for os in os3 os4 mos aros-i386 aros-ppc aros-x86_64; do
42 make OS=$os clean
43 make OS=$os DEBUG=
45 case $os in
46 os3) fullsys="AmigaOS3";;
47 os4) fullsys="AmigaOS4";;
48 mos) fullsys="MorphOS";;
49 aros-i386) fullsys="AROS-i386";;
50 aros-ppc) fullsys="AROS-ppc";;
51 aros-x86_64) fullsys="AROS-x86_64";;
52 esac
53 mkdir -p "release/OpenURL/C/$fullsys"
54 mkdir -p "release/OpenURL/Libs/$fullsys"
55 mkdir -p "release/OpenURL/Prefs/$fullsys"
56 cp -a cmd/bin_$os/OpenURL "release/OpenURL/C/$fullsys/"
57 cp -a library/bin_$os/openurl.library "release/OpenURL/Libs/$fullsys/"
58 cp -a prefs/bin_$os/OpenURL "release/OpenURL/Prefs/$fullsys/"
59 cp -a dist/OpenURL/Prefs/OpenURL.info "release/OpenURL/Prefs/$fullsys/"
60 mkdir -p "release/OpenURL/Developer"
61 mkdir -p "release/OpenURL/Developer/Autodocs"
62 mkdir -p "release/OpenURL/Developer/fd"
63 mkdir -p "release/OpenURL/Developer/sfd"
64 mkdir -p "release/OpenURL/Developer/xml"
65 done
67 cp -a -R dist/* "release/"
68 rm -f "release/OpenURL/Prefs/OpenURL.info"
69 cp -a AUTHORS ChangeLog COPYING "release/OpenURL/"
70 cp -a developer/Autodocs/* "release/OpenURL/Developer/Autodocs/"
71 cp -a developer/fd/* "release/OpenURL/Developer/fd/"
72 cp -a -R developer/C/include/* "release/OpenURL/Developer/C/include/"
73 cp -a developer/sfd/* "release/OpenURL/Developer/sfd/"
74 cp -a developer/xml/* "release/OpenURL/Developer/xml/"
76 cp -a locale/OpenURL.pot "release/OpenURL/Catalogs/"
77 rm -f locale/*.catalog
78 make -C prefs catalogs
79 for language in `ls locale/*.catalog`; do
80 catalog=$(basename "$language")
81 lang="${catalog%.*}"
82 mkdir -p "release/OpenURL/Catalogs/${lang}"
83 cp -a ${language} "release/OpenURL/Catalogs/${lang}/OpenURL.catalog"
84 done
86 releasever=`grep "#define LIB_VERSION" library/version.h | awk '{ print $3 }'`
87 releaserev=`grep "#define LIB_REVISION" library/version.h | awk '{ print $3 }'`
89 echo " MK OpenURL-$releasever.$releaserev.lha"
90 find release -nowarn -name ".svn" -exec rm -rf {} \; 2>/dev/null
91 cd release
92 rm -f ../OpenURL-$releasever.$releaserev.lha
93 lha -ao5q ../OpenURL-$releasever.$releaserev.lha *
94 cp OpenURL/ReadMe ../OpenURL-$releasever.$releaserev.readme
95 cd ..