]>
jfr.im git - irc/evilnet/x3.git/blob - install-r.sh
3 # This is a hacky solution to the problem of INSTALL not knowing how to recursively copy files
4 # and our need to recursively copy with exceptions the plugin tree. It works on linux,
5 # but needs serious work to be more portable. Please Help. -Rubin
9 # TODO: find banaries like 'find' and 'cp' in common locations and/or path, and
10 # use them there instead of assuming they are in path.
12 if [ "_$DST" = _
]; then
17 SRCDIR
=`basename "$SRC"`
18 find "$SRCDIR" \
! -path '*/.*' | \
21 mkdir -p "$(dirname "$d")"; \
22 if [ -f $f ]; then cp -v $f $d; fi; \
24 # this will break if SRCDIR has hidden directories in it :/
25 #find "$SRCDIR" \! -path '*/.*'