Contents of /branches/magellan-next/core/mage-release/mage-release-0.11_pre20110803-r1.smage2
Parent Directory | Revision Log
Revision 8848 -
(show annotations)
(download)
Wed Aug 3 08:22:52 2011 UTC (12 years, 10 months ago) by niro
File size: 818 byte(s)
Wed Aug 3 08:22:52 2011 UTC (12 years, 10 months ago) by niro
File size: 818 byte(s)
-ver bump to 0.11_pre20110803-r1
1 | # $Id$ |
2 | |
3 | PNAME="mage-release" |
4 | PVER="0.11_pre20110803" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | |
9 | DESCRIPTION="Release version files." |
10 | HOMEPAGE="http://magellan-linux.net/" |
11 | |
12 | DEPEND="" |
13 | |
14 | sminclude mtools |
15 | |
16 | src_install() |
17 | { |
18 | cd ${SRCDIR} |
19 | |
20 | local CONFIG |
21 | local distri |
22 | |
23 | # CODENAME comes from distribution file of the smagetree |
24 | if [[ ! -z ${CODENAME} ]] |
25 | then |
26 | distri="${CODENAME}" |
27 | else |
28 | distri="dev-${STATE}" |
29 | fi |
30 | |
31 | # always overwrite /etc/mageversion and /etc/system-release |
32 | minstalldir /etc/env.d || die |
33 | CONFIG=/etc/env.d/01release |
34 | mclearconfig || die |
35 | maddconfig 'CONFIG_PROTECT_MASK="/etc/mageversion /etc/system-release"' || die |
36 | |
37 | CONFIG=/etc/mageversion |
38 | mclearconfig || die |
39 | maddconfig "${PVER}" || die |
40 | |
41 | CONFIG=/etc/system-release |
42 | mclearconfig || die |
43 | maddconfig "Magellan-Linux release ${PVER} (${distri})" || die |
44 | } |