Of course, this problem is not Ubuntu specific. It exist on every system where there is an existing AVR toolchain.
If there are no hardcoded dependencies, I can rename the folders and file names in the following way: * dpkg-deb -x avr-binutils_2.15tinyos-4_i386.deb avr-binutils-tinyos * dpkg-deb -e avr-binutils_2.15tinyos-4_i386.deb avr-binutils-tinyos/DEBIAN * gedit avr-binutils-tinyos/DEBIAN/control (to change description) * cd avr-binutils-tinyos * mv avr avr-tinyos * cd usr/bin * for file in avr-*; do mv $file ${file/#avr-/avr-tinyos-}; done * (don't do it twice: the match #avr-[!tinyos] does not work, so can't prevent tinyos-tinyos rewritings in that case, to undo use: for file in avr-*; do mv $file ${file/#avr-tinyos-/avr-}; done) * cd usr/share/doc * mv avr-binutils avr-tinyos-binutils * cd usr/share/man/man1 * for file in avr-*; do mv $file ${file/#avr-/avr-tinyos-}; done * cd avr-binutils-tinyos/ * find . -name '*' -exec md5sum {} \; 2> /dev/null | grep -v DEBIAN > DEBIAN/md5sums * cd .. * dpkg-deb -b avr-binutils-tinyos avr-binutils_2.15atinyos-4_i386.deb Quite a lot of work. And actually useless if I do not have the sources, because it's quite certain that they refer to each other (and thus use hardcoded file names). http://forums.xandros.com/viewtopic.php?p=193397&sid=7cabaf9daef11d692e1678200897978d http://staff.washington.edu/dittrich/misc/faqs/unix.rename.wildcard http://www.nongnu.org/lpi-manuals/lpi-102/html/ch07s04.html#bashfor _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help