Advertisement
Guest User

Untitled

a guest
Sep 18th, 2012
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. #!/bin/bash
  2. # This is an script to replace all symlinks is current directory with real content
  3. # This will prevent dpkg-source from giving errores
  4. for link in $(find $1 -type l)
  5. do
  6.   loc=$(dirname $link)
  7.   dir=$(readlink -e $link)
  8.   rm -v $link
  9.   cp -v -f $dir $loc
  10. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement