Skip to content

Instantly share code, notes, and snippets.

@ruxkor
Created May 14, 2016 18:27
Show Gist options
  • Save ruxkor/114670b4a6d7cd80b97303caf1d027bc to your computer and use it in GitHub Desktop.
Save ruxkor/114670b4a6d7cd80b97303caf1d027bc to your computer and use it in GitHub Desktop.
# checkinstall makefile for tigervnc's precompiled tarball
# expects the extracted files to be in a folder named 'build'
# save this file as Makefile and checkinstall as usual.
noop:
install:
find build -type d | sort | sed "s,^build,," | while read l; do ls $$l >/dev/null 2>/dev
find build -type f | sed -r "s,build(.*),\0 \1," | while read l; do cp -a $$l; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment