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

Contents of /lbbs/utils/makedist.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations)
Sat Jul 5 01:21:40 2025 UTC (8 months, 1 week ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +0 -0 lines
Content type: text/x-sh
FILE REMOVED
Remove legacy files

1 #!/bin/sh
2 cpfile() {
3 if [ ! -f $1/$2 ]; then
4 /bin/cp $2 $1/$2
5 fi
6 }
7
8 cpfileforce() {
9 /bin/cp -f $2 $1/$2
10 }
11
12 md() {
13 if [ ! -d $1/$2 ]; then
14 mkdir $1/$2
15 fi
16 }
17
18 md $1
19 md $1 bin
20 md $1 conf
21 md $1 lib
22
23 for i in `find bin/ -maxdepth 1 -type f`; do
24 cpfileforce $1 $i
25 done
26
27 for i in `find conf/ -maxdepth 1 -type f`; do
28 cpfile $1 $i
29 done
30
31 for i in `find lib/ -maxdepth 1 -type f`; do
32 cpfileforce $1 $i
33 done

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