File: copy-doc.sh

package info (click to toggle)
ola 0.10.7.nojsmin-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,252 kB
  • sloc: cpp: 131,729; python: 13,127; sh: 4,590; ansic: 2,179; java: 518; xml: 253; makefile: 142
file content (25 lines) | stat: -rwxr-xr-x 403 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

if [ $# != 1 ]; then
  echo "Usage: $0 <output_dir>"
  exit 1;
fi

output_dir=$1
if [ ! -d $output_dir ]; then
  echo $output_dir is not a directory
  exit 1;
fi

echo "Output dir: $output_dir";

if [ ! -d ./html/ ]; then
  echo ./html/ doesn\'t exist, make doxygen-doc failed somehow
  exit 1;
fi

cp -a -v ./html/* $output_dir

chmod -c -R a+r $output_dir

chmod -c a+rx $output_dir/search