/[smeserver]/rpms/runit/sme9/runit.svdepcalc
ViewVC logotype

Annotation of /rpms/runit/sme9/runit.svdepcalc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Fri Jan 25 18:40:43 2013 UTC (11 years, 10 months ago) by slords
Branch: MAIN
CVS Tags: runit-2_0_0-1_el6_sme, runit-2_1_2-1_el6_sme, HEAD
Initial import

1 slords 1.1 #!/bin/sh
2    
3     if [ ! -d $1 ]; then
4     echo "Usage: svdepcalc /path/to/your/service/directory"
5     exit 111
6     fi
7    
8     cd $1
9     for DIR in *; do rm -rf $DIR/downdeps; done
10     for DIR in *; do
11     if [ -d $DIR/updeps ]; then
12     for DEP in $DIR/updeps/*; do
13     mkdir -p $DEP/downdeps
14     ln -s `pwd`/$DIR $DEP/downdeps
15     done
16     fi
17     done

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed