/[LeafOK_CVS]/lbbs/makedist.sh
ViewVC logotype

Annotation of /lbbs/makedist.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Fri Mar 18 16:04:16 2005 UTC (21 years ago) by sysadm
Branch: MAIN
Content type: text/x-sh
*** empty log message ***

1 sysadm 1.1 #!/bin/sh
2     cpfile() {
3     if [ ! -f $1/$2 ]; then
4     /bin/cp $2 $1/$2
5     fi
6     }
7    
8     md() {
9     if [ ! -d $1/$2 ]; then
10     mkdir $1/$2
11     fi
12     }
13    
14     md $1 conf
15     md $1 data
16     md $1 log
17    
18     for i in `find conf/ -maxdepth 1 -type f`; do
19     cpfile $1 $i
20     done
21    
22     for i in `find data/ -maxdepth 1 -type f`; do
23     cpfile $1 $i
24     done

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1