--- trunk/mage/usr/lib/mage/smage2.sh 2011/06/04 09:20:09 1346 +++ trunk/mage/usr/lib/mage/smage2.sh 2011/06/04 09:25:44 1347 @@ -744,30 +744,22 @@ # now build the mage file > ${dest} - # header - echo '# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.62 2007-11-28 10:47:50 niro Exp $' >> ${dest} - echo >> ${dest} - # pgkname and state echo "PKGNAME=\"${PNAME}${target}-${PVER}-\${ARCH}-${PBUILD}\"" >> ${dest} echo "STATE=\"${STATE}\"" >> ${dest} - echo >> ${dest} # description and homepage echo "DESCRIPTION=\"${DESCRIPTION}\"" >> ${dest} echo "HOMEPAGE=\"${HOMEPAGE}\"" >> ${dest} - echo >> ${dest} # special tags and vars echo "PKGTYPE=\"${PKGTYPE}\"" >> ${dest} # echo MAGE_TARGETS ## note -target is needed ! echo "MAGE_TARGETS=\"${target}\"" >> ${dest} - echo >> ${dest} # split package base echo "SPLIT_PACKAGE_BASE=\"${split_pkg_base}\"" >> ${dest} - echo >> ${dest} # add special vars if [ -n "${SPECIAL_VARS}" ] @@ -778,7 +770,6 @@ # being tricky here :) echo "${i}=\"$(eval echo \$${i})\"" >> ${dest} done - echo >> ${dest} fi # add at least all includes @@ -790,17 +781,12 @@ do echo -n " ${i}" >> ${dest} done - echo >> ${dest} fi - echo >> ${dest} # deps and provides echo "DEPEND=\"$(fix_mage_deps "${target}" "${DEPEND}")\"" >> ${dest} - echo >> ${dest} echo "SDEPEND=\"$(fix_mage_deps "${target}" "${SDEPEND}")\"" >> ${dest} - echo >> ${dest} echo "PROVIDE=\"${PROVIDE}\"" >> ${dest} - echo >> ${dest} # add special functions if [ -n "${SPECIAL_FUNCTIONS}" ] @@ -810,22 +796,16 @@ do # add to mage (quotes needed !) typeset -f "${i}" >> ${dest} - echo >> ${dest} # unset to be safe (quotes needed !) #unset "${i}" <-- later to get every target built done - echo >> ${dest} fi # pre|post-install|removes typeset -f preinstall >> ${dest} - echo >> ${dest} typeset -f postinstall >> ${dest} - echo >> ${dest} typeset -f preremove >> ${dest} - echo >> ${dest} typeset -f postremove >> ${dest} - echo >> ${dest} } regen_mage_tree()