This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IFS="$(echo -e "\n\r")" | |
if [ "$2" == "" ]; then | |
echo "Syntax: $0 source-directory destination-directory" | |
echo "Will create directory structure of source-directory in destination-directory" | |
echo "and symbolic links with relative paths for all files." | |
echo "destination-directory will be created if it does not exist." | |
echo | |
echo "(c)2012 Ronny Ager-Wick, released under GPL v3" | |
echo "inspired by http://ubuntuforums.org/showthread.php?t=798899" |