[go: up one dir, main page]

File: install.sh

package info (click to toggle)
libmoe 1.5.8-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,884 kB
  • ctags: 268,037
  • sloc: ansic: 481,439; perl: 2,318; makefile: 158; sh: 33
file content (12 lines) | stat: -rw-r--r-- 151 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
target=$1
shift

for f in "$@"
do
 if [ -L "$f" ]
 then
  ln -s `ls -l "$f" | sed 's/.*  *->  *//'` "$target/$f"
 else
  cp -p "$f" "$target"
 fi
done