File: movefiles

package info (click to toggle)
openafs 1.2.3final2-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 57,996 kB
  • ctags: 74,894
  • sloc: ansic: 387,313; cpp: 98,757; makefile: 9,333; sh: 7,814; perl: 6,524; yacc: 2,097; asm: 1,139; tcl: 249; csh: 123; lex: 106
file content (14 lines) | stat: -rw-r--r-- 304 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e


# This script reads in  a set of lines in the form
# destination sources
# andmoves sources to destination
# destination is relative to the debian directory

while read dest srcs ; do
    mkdir -p debian/$dest ||true
    for foo in $srcs; do
	cp -rp  dest/$foo debian/$dest
	    done
done