projects
/
librecmc
/
librecmc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
script/symlink-tree.sh: Fix missing config dir
[librecmc/librecmc.git]
/
scripts
/
symlink-tree.sh
diff --git
a/scripts/symlink-tree.sh
b/scripts/symlink-tree.sh
index e44ebdabbfa96bdf52efb1ab04d983c11c9356f3..3b7ce4718d3d36f8b456903de867c2ec8f75d4c2 100755
(executable)
--- a/
scripts/symlink-tree.sh
+++ b/
scripts/symlink-tree.sh
@@
-4,6
+4,7
@@
FILES="
BSDmakefile
FILES="
BSDmakefile
+ config
Config.in
LICENSE
Makefile
Config.in
LICENSE
Makefile
@@
-19,6
+20,9
@@
FILES="
toolchain
tools"
toolchain
tools"
+OPTIONAL_FILES="
+ .git"
+
if [ -f feeds.conf ] ; then
FILES="$FILES feeds.conf"
fi
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
}
ln -s "$PWD/$file" "$1/"
done
+for file in $OPTIONAL_FILES; do
+ [ -e "$PWD/$file" ] && ln -s "$PWD/$file" "$1/"
+done
exit 0
exit 0