Friday, December 26, 2008

diff .c, .h, .cpp files only

diff .c, .h, .cpp files only from current directory to $(TRGT_DIR)

find \( -path ./.pc -prune \) -o \( -name '*.cpp' -o -name '*.[ch]' \) -exec diff -u {} $(TRGT_DIR)/{} \;

Finding library dependencies of ELF binary file:
alias arm-ldd='objdump -x a.out | grep NEEDED'

Wednesday, December 24, 2008

extracting ipkg, .deb files

List the contents of archive
ar -t sdlquake_1.0.9-r0.1_armv7a.ipk

Extract the contents
ar -x sdlquake_1.0.9-r0.1_armv7a.ipk

command to extract the deb packages:
dpkg-deb -x {deb-package name} {target directory}