1 |
#!/bin/bash |
#!/bin/bash |
2 |
|
|
3 |
source /etc/mage.rc.global |
: ${MAGERC="/etc/mage.rc"} |
|
source /etc/mage.rc |
|
4 |
|
|
5 |
|
source /etc/mage.rc.global |
6 |
|
source ${MAGERC} |
7 |
|
source ${MLIBDIR}/mage4.functions.sh |
8 |
|
source ${MLIBDIR}/smage2.functions.sh |
9 |
|
|
10 |
#### fixups #### |
#### fixups #### |
|
#MLIBDIR=/home/tjoke/alx-cvs/magellan-src/mage/usr/lib/mage |
|
|
MLIBDIR=/home/rogalla/cvsroot/magellan-src/mage/usr/lib/mage |
|
|
INSTALLDB=/var/db/mage |
|
11 |
METADIR=/var/cache/mage/meta |
METADIR=/var/cache/mage/meta |
12 |
################# |
################# |
13 |
|
|
|
source ${MLIBDIR}/mage4.functions.sh |
|
14 |
source ${MLIBDIR}/sql_functions.sh |
source ${MLIBDIR}/sql_functions.sh |
15 |
|
|
16 |
die() |
die() |
318 |
# substitute r from pbuild |
# substitute r from pbuild |
319 |
pbuild="${pbuild/r/}" |
pbuild="${pbuild/r/}" |
320 |
|
|
321 |
source ${magefile} |
smagesource ${magefile} |
322 |
|
|
323 |
pcatid=$(sql "select id from categories where pcat='${pcat}'") |
pcatid=$(sql "select id from categories where pcat='${pcat}'") |
324 |
sql "insert into packages( |
sql "insert into packages( |