X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=scripts%2Fsymlink-tree.sh;h=3b7ce4718d3d36f8b456903de867c2ec8f75d4c2;hb=c19b7aaac5f861a20be9a7ddcce3832f6ba4a899;hp=e44ebdabbfa96bdf52efb1ab04d983c11c9356f3;hpb=3e08637e878c32a40cdcb84c6030fcdd0cb88196;p=librecmc%2Flibrecmc.git diff --git a/scripts/symlink-tree.sh b/scripts/symlink-tree.sh index e44ebdabbf..3b7ce4718d 100755 --- a/scripts/symlink-tree.sh +++ b/scripts/symlink-tree.sh @@ -4,6 +4,7 @@ FILES=" BSDmakefile + config Config.in LICENSE Makefile @@ -19,6 +20,9 @@ FILES=" toolchain tools" +OPTIONAL_FILES=" + .git" + if [ -f feeds.conf ] ; then FILES="$FILES feeds.conf" fi @@ -42,4 +46,7 @@ for file in $FILES; do } ln -s "$PWD/$file" "$1/" done +for file in $OPTIONAL_FILES; do + [ -e "$PWD/$file" ] && ln -s "$PWD/$file" "$1/" +done exit 0