Magellan Linux

Diff of /trunk/mage/usr/lib/mage/smage2.sh

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

revision 1584 by niro, Wed Dec 28 12:23:50 2011 UTC revision 1592 by niro, Thu Dec 29 15:15:34 2011 UTC
# Line 10  Line 10 
10  # set default user mage.rc  # set default user mage.rc
11  : ${MAGERC="/etc/mage.rc"}  : ${MAGERC="/etc/mage.rc"}
12    
 ## setup ##  
 SMAGENAME="$1"  
 SMAGEVERSION="$( < ${MLIBDIR}/version)"  
   
13  # export default C locale  # export default C locale
14  export LC_ALL=C  export LC_ALL=C
15    
# Line 21  source /etc/mage.rc.global Line 17  source /etc/mage.rc.global
17  source ${MAGERC}  source ${MAGERC}
18  source ${MLIBDIR}/mage4.functions.sh  source ${MLIBDIR}/mage4.functions.sh
19    
20    ## setup ##
21    SMAGENAME="$1"
22    SMAGEVERSION="$(< ${MLIBDIR}/version)"
23    
24  # set PKGDIR and BUILDDIR and BINDIR to MROOT  # set PKGDIR and BUILDDIR and BINDIR to MROOT
25  if [[ -n ${MROOT} ]]  if [[ -n ${MROOT} ]]
26  then  then
# Line 201  download_sources() Line 201  download_sources()
201  # dummy function, used if that does not exist in smage file  # dummy function, used if that does not exist in smage file
202  src_prepare()  src_prepare()
203  {  {
204   echo "no src_prepare defined"   echo "no src_prepare defined; doing nothing ..."
205   return 0   return 0
206  }  }
207    
208  # dummy function, used if that does not exist in smage file  # dummy function, used if that does not exist in smage file
209  src_compile()  src_compile()
210  {  {
211   echo "no src_compile defined"   echo "no src_compile defined; doing nothing ..."
212   return 0   return 0
213  }  }
214    
215  # dummy function, used if that does not exist in smage file  # dummy function, used if that does not exist in smage file
216  src_check()  src_check()
217  {  {
218   echo "no src_check defined"   echo "no src_check defined; doing nothing ..."
219   return 0   return 0
220  }  }
221    
222  # dummy function, used if that does not exist in smage file  # dummy function, used if that does not exist in smage file
223  src_install()  src_install()
224  {  {
225   echo "no src_install defined"   echo "no src_install defined; doing nothing ..."
226   return 0   return 0
227  }  }
228    

Legend:
Removed from v.1584  
changed lines
  Added in v.1592