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() |
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( |