#!/bin/sh
#set -e

srcdir=`dirname $0`

# Get sources from gphoto2 SVN
WGET=`which wget`
if [ "x$WGET" != "x" ]; then
    wget -O tmpfile http://gphoto.svn.sourceforge.net/viewvc/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/ptp.c
    mv tmpfile ptp.c.gphoto2
    wget -O tmpfile http://gphoto.svn.sourceforge.net/viewvc/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/ptp.h
    mv tmpfile ptp.h.gphoto2
    wget -O tmpfile http://gphoto.svn.sourceforge.net/viewvc/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/ptp-pack.c
    mv tmpfile ptp-pack.c.gphoto2
    wget -O tmpfile http://gphoto.svn.sourceforge.net/viewvc/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/library.c
    mv tmpfile library.c.gphoto2
else
    echo "Could not sync to gphoto2. No WGET."
fi

echo "Finished!"


#!/bin/sh
#set -e

srcdir=`dirname $0`

# Get sources from gphoto2 SVN
WGET=`which wget`
if [ "x$WGET" != "x" ]; then
    wget -O tmpfile http://svn.sourceforge.net/viewcvs.cgi/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/ptp.c
    mv tmpfile ptp.c.gphoto2
    wget -O tmpfile http://svn.sourceforge.net/viewcvs.cgi/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/ptp.h
    mv tmpfile ptp.h.gphoto2
    wget -O tmpfile http://svn.sourceforge.net/viewcvs.cgi/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/ptp-pack.c
    mv tmpfile ptp-pack.c.gphoto2
    wget -O tmpfile http://svn.sourceforge.net/viewcvs.cgi/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/library.c
    mv tmpfile library.c.gphoto2
else
    echo "Could not sync to gphoto2. No WGET."
fi

echo "Finished!"


--- 
+++ 
@@ -6,13 +6,13 @@
 # Get sources from gphoto2 SVN
 WGET=`which wget`
 if [ "x$WGET" != "x" ]; then
-    wget -O tmpfile http://gphoto.svn.sourceforge.net/viewvc/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/ptp.c
+    wget -O tmpfile http://svn.sourceforge.net/viewcvs.cgi/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/ptp.c
     mv tmpfile ptp.c.gphoto2
-    wget -O tmpfile http://gphoto.svn.sourceforge.net/viewvc/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/ptp.h
+    wget -O tmpfile http://svn.sourceforge.net/viewcvs.cgi/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/ptp.h
     mv tmpfile ptp.h.gphoto2
-    wget -O tmpfile http://gphoto.svn.sourceforge.net/viewvc/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/ptp-pack.c
+    wget -O tmpfile http://svn.sourceforge.net/viewcvs.cgi/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/ptp-pack.c
     mv tmpfile ptp-pack.c.gphoto2
-    wget -O tmpfile http://gphoto.svn.sourceforge.net/viewvc/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/library.c
+    wget -O tmpfile http://svn.sourceforge.net/viewcvs.cgi/*checkout*/gphoto/trunk/libgphoto2/camlibs/ptp2/library.c
     mv tmpfile library.c.gphoto2
 else
     echo "Could not sync to gphoto2. No WGET."
Update script used for sync script to viewvc
