aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Dickinson <openwrt@daniel.thecshore.com>2016-05-01 22:40:09 -0400
committerJo-Philipp Wich <jo@mein.io>2016-05-18 22:17:28 +0200
commitc19b7aaac5f861a20be9a7ddcce3832f6ba4a899 (patch)
treed88a7d4294cebecc881489f4cae69bc6397dc1b3 /scripts
parent3e08637e878c32a40cdcb84c6030fcdd0cb88196 (diff)
downloadupstream-c19b7aaac5f861a20be9a7ddcce3832f6ba4a899.tar.gz
upstream-c19b7aaac5f861a20be9a7ddcce3832f6ba4a899.tar.bz2
upstream-c19b7aaac5f861a20be9a7ddcce3832f6ba4a899.zip
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 <openwrt@daniel.thecshore.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/symlink-tree.sh7
1 files changed, 7 insertions, 0 deletions
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