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.32 2005-08-21 21:48:24 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.35 2005-08-22 00:16:41 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.32 2005-08-21 21:48:24 niro Exp $' >> ${dest} |
echo '# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.35 2005-08-22 00:16:41 niro Exp $' >> ${dest} |
516 |
echo >> ${dest} |
echo >> ${dest} |
517 |
|
|
518 |
# pgkname and state |
# pgkname and state |
582 |
echo >> ${dest} |
echo >> ${dest} |
583 |
typeset -f postremove >> ${dest} |
typeset -f postremove >> ${dest} |
584 |
echo >> ${dest} |
echo >> ${dest} |
585 |
|
|
586 |
|
# echo MAGE_TARGETS ## note -target is needed ! |
587 |
|
echo "MAGE_TARGETS=\"${target}\"" >> ${dest} |
588 |
} |
} |
589 |
|
|
590 |
regen_mage_tree() |
regen_mage_tree() |
749 |
exit 0 |
exit 0 |
750 |
fi |
fi |
751 |
|
|
752 |
|
# regen-mage-tree |
753 |
|
if [ "$1" == "only-regen-tree" -a -n "$2" ] |
754 |
|
then |
755 |
|
# set correct SMAGENAME |
756 |
|
SMAGENAME="$2" |
757 |
|
MD5DIR="$(dirname ${SMAGENAME})/md5" |
758 |
|
source ${SMAGENAME} || die "regen: smage2 not found" |
759 |
|
|
760 |
|
regen_mage_tree |
761 |
|
exit 0 |
762 |
|
fi |
763 |
|
|
764 |
if [ ! -e ${MLIBDIR}/pkgbuild_dir.sh ] |
if [ ! -e ${MLIBDIR}/pkgbuild_dir.sh ] |
765 |
then |
then |
766 |
die "Error: ${MLIBDIR}/pkgbuild_dir.sh not found. Aborting." |
die "Error: ${MLIBDIR}/pkgbuild_dir.sh not found. Aborting." |