4 |
# needs pkgbuild_dir (mage) |
# needs pkgbuild_dir (mage) |
5 |
|
|
6 |
# SMAGE2 |
# SMAGE2 |
7 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.36 2005-08-28 19:23:04 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.37 2005-10-02 14:23:11 niro Exp $ |
8 |
|
|
9 |
#01.10.2004 |
#01.10.2004 |
10 |
# added ccache support |
# added ccache support |
512 |
> ${dest} |
> ${dest} |
513 |
|
|
514 |
# header |
# header |
515 |
echo '# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.36 2005-08-28 19:23:04 niro Exp $' >> ${dest} |
echo '# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.37 2005-10-02 14:23:11 niro Exp $' >> ${dest} |
516 |
echo >> ${dest} |
echo >> ${dest} |
517 |
|
|
518 |
# pgkname and state |
# pgkname and state |
644 |
unset postremove |
unset postremove |
645 |
} |
} |
646 |
|
|
647 |
|
export_inherits() |
648 |
|
{ |
649 |
|
local include="$1" |
650 |
|
shift |
651 |
|
|
652 |
|
while [ "$1" ] |
653 |
|
do |
654 |
|
local functions="$1" |
655 |
|
|
656 |
|
# sanity checks |
657 |
|
[ -z "${include}" ] && die "export_inherits(): \$include not given." |
658 |
|
[ -z "${functions}" ] && die "export_inherits(): \$functions not given." |
659 |
|
|
660 |
|
eval "${functions}() { ${include}_${functions} ; }" |
661 |
|
|
662 |
|
# debug |
663 |
|
[[ ${MAGEDEBUG} = on ]] && typeset -f "${functions}" |
664 |
|
|
665 |
|
shift |
666 |
|
done |
667 |
|
} |
668 |
|
|
669 |
# print out our version |
# print out our version |
670 |
showversion |
showversion |
671 |
echo |
echo |