doc.sh 584 Bytes
Newer Older
1
2
#!/bin/bash

Guilhem Saurel's avatar
Guilhem Saurel committed
3
# Removes useless folders, and set permissions
Guilhem Saurel's avatar
Guilhem Saurel committed
4

5
6
set -e

Guilhem Saurel's avatar
Guilhem Saurel committed
7
cd /net/pongo/vol/vol_projects/partage_gepetto/Doc
8
9
10
11
12
13
14

for namespace in *; do
    pushd $namespace
    for project in *; do
        pushd $project
        for branch in *; do
            pushd $branch
Guilhem Saurel's avatar
Guilhem Saurel committed
15
16
17
18
19
            for folder in html doxygen-html; do
                [[ -d $folder ]] || continue
                cp -r $folder/* .
                rm -r $folder
            done
20
21
22
23
24
25
            popd
        done
        popd
    done
    popd
done
Guilhem Saurel's avatar
Guilhem Saurel committed
26
27
28

find . -type d -exec chmod 0775 {} \;
find . -type f -exec chmod 0664 {} \;