瀏覽代碼

script/symlink-tree.sh: Fix missing config dir

Apparently symlink-tree has not been used in quite some time as it
fails to symlink the always required config dir

Also, if we pulled from git but .git is missing we get
many error messages on the symlinked tree without this
patch (which symlinks .git, if present)

Signed-off-by: Daniel Dickinson <[email protected]>
Daniel Dickinson 9 年之前
父節點
當前提交
c19b7aaac5
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      scripts/symlink-tree.sh

+ 7 - 0
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