Magellan Linux

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

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

revision 1641 by niro, Tue May 1 13:09:39 2007 UTC revision 1642 by niro, Fri Jan 13 18:37:52 2012 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
3  source /etc/mage.rc.global  : ${MAGERC="/etc/mage.rc"}
 source /etc/mage.rc  
   
   
 #### fixups ####  
 MLIBDIR=/home/tjoke/alx-cvs/magellan-src/mage/usr/lib/mage  
 INSTALLDB=/var/db/mage  
 #################  
4    
5    source /etc/mage.rc.global
6    source ${MAGERC}
7  source ${MLIBDIR}/mage4.functions.sh  source ${MLIBDIR}/mage4.functions.sh
8    source ${MLIBDIR}/smage2.functions.sh
9  source ${MLIBDIR}/sql_functions.sh  source ${MLIBDIR}/sql_functions.sh
10    
11  die()  die()
# Line 118  convert_mage_db() Line 114  convert_mage_db()
114   # substitute r from pbuild   # substitute r from pbuild
115   pbuild="${pbuild/r/}"   pbuild="${pbuild/r/}"
116    
117   source ${magefile}   smagesource ${magefile}
118    
119   pcatid=$(sql "select id from categories where pcat='${pcat}'")   pcatid=$(sql "select id from categories where pcat='${pcat}'")
120   sql "insert into packages(   sql "insert into packages(

Legend:
Removed from v.1641  
changed lines
  Added in v.1642