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

Annotation of /lbbs/utils/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
15     md $1 bin
16     md $1 conf
17     md $1 lib
18    
19     for i in `find bin/ -maxdepth 1 -type f`; do
20     cpfile $1 $i
21     done
22    
23     for i in `find conf/ -maxdepth 1 -type f`; do
24     cpfile $1 $i
25     done
26    
27     for i in `find lib/ -maxdepth 1 -type f`; do
28     cpfile $1 $i
29     done
30    

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