File: doctoweb.bash

package info (click to toggle)
libfeedparser-ruby 0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 204 kB
  • ctags: 297
  • sloc: ruby: 2,798; sh: 24; makefile: 6
file content (30 lines) | stat: -rwxr-xr-x 703 bytes parent folder | download | duplicates (8)
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
26
27
28
29
30
#!/bin/bash

if [ -z $CVSDIR ]; then
	CVSDIR=$HOME/dev/ruby-feedparser/website
fi

TARGET=$CVSDIR/rdoc

echo "Copying rdoc documentation to $TARGET."

if [ ! -d $TARGET ]; then
	echo "$TARGET doesn't exist, exiting."
	exit 1
fi
rsync -a rdoc/ $TARGET/

echo "###########################################################"
echo "CVS status :"
cd $TARGET
svn st
echo "CVS Adding files."
while [ $(svn st | grep "^? " | wc -l) -gt 0 ]; do
	svn add $(svn st | grep "^? " | awk '{print $2}')
done
echo "###########################################################"
echo "CVS status after adding missing files:"
svn st
echo "Commit changes now with"
echo "# (cd $TARGET && svn commit -m \"rdoc update\")"
exit 0