Skip to content

Instantly share code, notes, and snippets.

@fcrespo82
Last active May 20, 2016 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcrespo82/f2bff4f6e70f5c374498355157929dc2 to your computer and use it in GitHub Desktop.
Save fcrespo82/f2bff4f6e70f5c374498355157929dc2 to your computer and use it in GitHub Desktop.
Remove all files from a make install that do not provide a make uninstall

You can use make install and DESTDIR to get a clean tree of the files in the kit. The following (untested script) should delete all the files of the SVN source kit.

BE CAREFUL WITH THIS COMMAND SINCE IT USES sudo rm AND COULD DAMAGE YOUR SYSTEM.

YOU HAVE BEEN WARNED!

make install DESTDIR=/tmp/qqq
cd /tmp/qqq
find . -type f | sed "s/\.\//\//" | xargs sudo rm
cd /tmp
rm -rf qqq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment