]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/bin/stepdirs.sh
Merge branch 'jneeman' of git+ssh://jneem@git.sv.gnu.org/srv/git/lilypond into jneeman
[lilypond.git] / stepmake / bin / stepdirs.sh
1 #!/bin/sh
2 # stepdirs.sh
3
4 help () {
5         echo "Usage: stepmake/bin/stepdirs.sh"
6 }
7
8 if [ $# -ne 0 ]; then
9         help
10         exit 2
11 fi
12
13 if [ ! -r stepmake ]; then
14         help
15         exit 2
16 fi
17
18 if [ -r VERSION ]; then
19         . ./VERSION
20         if [ "x$PACKAGE_NAME" = "xStepMake" ]; then
21                 help
22                 exit 2
23         fi
24 fi
25
26 dirs="RedHat doos patches releases test"
27
28 echo -n "Checking StepMake layout..."
29 for i in $dirs; do
30         if [ ! -r ../$i ]; then
31                 missing="$missing ../$i"
32         fi
33 done
34
35 if [ "x$missing" = "x" ]; then
36         echo ok
37         exit 0
38 fi
39
40 echo
41
42 echo "Creating missing directories:"
43 for i in $missing; do
44         (set -x; mkdir $i)
45 done
46
47 echo done