generate-tar-doc 418 Bytes
Newer Older
1
2
#!/bin/sh

3
# generate-tar-doc $DEVEL_HPP_DIR/install/share/doc http://projects.laas.fr/gepetto/hpp
4
5
# then copy /tmp/hpp.tar.gz on server and inflate archive.

6
usage="usage: `basename $0` <directory> <server>"
7

8
if [ $# -eq 2 ]; then
9
10
   rm -rf /tmp/hpp
   cp -r $1 /tmp/hpp
11
   find /tmp/hpp -type f -exec sed -i "s|$1|$2|g" {} \;
12
13
14
15
16
17
18
   cd /tmp; tar czf hpp.tar.gz hpp
   rm -rf hpp
   exit 0
else
	echo $usage;
	exit 1;
fi