Magellan Linux

Diff of /trunk/mlivecdbuild/files/mage-src/setup_mage.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 188 by niro, Fri Jul 1 17:24:33 2005 UTC revision 189 by niro, Thu Aug 18 05:32:05 2005 UTC
# Line 13  MY_MAGEPROFILE=$4 Line 13  MY_MAGEPROFILE=$4
13    
14  #which version ?  #which version ?
15  MY_PNAME=mage  MY_PNAME=mage
16  MY_PVER=0.3.6  MY_PVER=0.3.7
17  PBUILDEXT=r17  PBUILDEXT=r3
18    
19  #standart die function  #standart die function
20  die() {  die() {
# Line 43  then Line 43  then
43  fi  fi
44    
45  #source equivalent smage-file  #source equivalent smage-file
46  source ${MY_SRCDIR}/${MY_PNAME}-${MY_PVER}-${PBUILDEXT}.smage2 || die 1  source ${MY_SRCDIR}/${MY_PNAME}-${MY_PVER}-${PBUILDEXT}.smage2 || die
47    
48  #create temporary directory  #create temporary directory
49  install -d ${PREFIX}/temp || die 2  install -d ${PREFIX}/tmp || die
50    
51  #unpack source  #unpack source
52  tar --no-same-owner -xvjf \  tar --no-same-owner -xvjf \
53   ${MY_SRCDIR}/${MY_PNAME}-${MY_PVER}-${PBUILDEXT}.tar.bz2 -C ${PREFIX}/temp || die 3   ${MY_SRCDIR}/${MY_PNAME}-${MY_PVER}-${PBUILDEXT}.tar.bz2 -C ${PREFIX}/tmp || die
54    
55    
56  #setup some general needed directories  #setup some general needed directories
57  source ${MY_MAGERC} || die 4  source ${MY_MAGERC} || die
58    
59  install -d ${PREFIX}/${PKGDIR} || die 5  install -d ${PREFIX}/${PKGDIR} || die
60  install -d ${PREFIX}/${BUILDDIR} || die 6  install -d ${PREFIX}/${BUILDDIR} || die
61  install -d ${PREFIX}/${INSTALLDB} || die 7  install -d ${PREFIX}/${INSTALLDB} || die
62  install -d ${PREFIX}/${MAGEDIR} || die 8  install -d ${PREFIX}/${MAGEDIR} || die
63    
64    
65  #compatibilty issues; override these var with right settings  #compatibilty issues; override these var with right settings
66  BINDIR=${PREFIX}  BINDIR=${PREFIX}
67  SRCDIR=${PREFIX}/temp/${PNAME}-${PVER}-${PBUILDEXT}  SRCDIR=${PREFIX}/tmp/${PNAME}-${PVER}-${PBUILDEXT}
68    
69  #install mage  #install mage
70  src_install  || die 9  src_install  || die
71    
72  #install mage.rc  #install mage.rc
73  install -m0644 ${MY_MAGERC} ${PREFIX}/etc || die 10  install -m0644 ${MY_MAGERC} ${PREFIX}/etc || die
74    
75  #install mage profile  #install mage profile
76  ln -s ${MAGEDIR}/profiles/${MY_MAGEPROFILE} ${PREFIX}/etc/mage-profile || die 11  ln -s ${MAGEDIR}/profiles/${MY_MAGEPROFILE} ${PREFIX}/etc/mage-profile || die

Legend:
Removed from v.188  
changed lines
  Added in v.189