Annotation of /branches/magellan-next/core/mage-release/mage-release-0.11_pre20110803-r1.smage2
Parent Directory
|
Revision Log
Revision 8849 -
(hide annotations)
(download)
Wed Aug 3 08:46:08 2011 UTC (12 years, 10 months ago) by niro
File size: 828 byte(s)
Wed Aug 3 08:46:08 2011 UTC (12 years, 10 months ago) by niro
File size: 828 byte(s)
-CONFIG -> MCONFIG
1 | niro | 8848 | # $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 | niro | 8849 | local MCONFIG |
21 | niro | 8848 | 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 | niro | 8849 | MCONFIG="/etc/env.d/01release" |
34 | niro | 8848 | mclearconfig || die |
35 | maddconfig 'CONFIG_PROTECT_MASK="/etc/mageversion /etc/system-release"' || die | ||
36 | |||
37 | niro | 8849 | MCONFIG="/etc/mageversion" |
38 | niro | 8848 | mclearconfig || die |
39 | maddconfig "${PVER}" || die | ||
40 | |||
41 | niro | 8849 | MCONFIG="/etc/system-release" |
42 | niro | 8848 | mclearconfig || die |
43 | maddconfig "Magellan-Linux release ${PVER} (${distri})" || die | ||
44 | } |