/[gentoo-projects]/devel-chroots/devel-chroots-2.0.0/copy.sh
Gentoo

Contents of /devel-chroots/devel-chroots-2.0.0/copy.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Thu Dec 14 17:18:52 2006 UTC (8 years ago) by pappy
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-sh
adding 2.0.0 files for project

1 #!/bin/bash
2
3 rm -rf /tmp/image
4 mkdir -p /tmp/image
5
6 find -type d | grep -v CVS | grep -v TODO | grep -v pappy > /tmp/mydirs
7 find -type f | grep -v CVS | grep -v TODO | grep -v pappy | \
8 grep -v copy.sh > /tmp/myfiles
9
10 for i in $(cat /tmp/mydirs)
11 do
12 mkdir -p "/tmp/image/${1:-devel-chroots-2.0.0}/$i"
13 done
14
15 for i in $(cat /tmp/myfiles)
16 do
17 rsync -apx "$i" "/tmp/image/${1:-devel-chroots-2.0.0}/$i"
18 done

  ViewVC Help
Powered by ViewVC 1.1.20