1#!/bin/sh 2#set -e 3 4SVN=`which svn` 5if [ "x$SVN" = "x" ]; then 6 echo "Install svn! (subversion client)" 7 exit 1 8fi 9 10if [ ! -d ptp2 ] ; then 11 echo "No copy of the gphoto trunk, checking out..." 12 svn checkout svn://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2/camlibs/ptp2 ptp2 13fi 14if [ ! -d ptp2 ] ; then 15 echo "Could not clone gphoto trunk." 16 exit 1 17fi 18 19cd ptp2 20svn update 21cd .. 22 23cp ptp2/ptp.c ptp.c 24cp ptp2/ptp.h ptp.h 25cp ptp2/ptp-pack.c ptp-pack.c 26cp ptp2/chdk_ptp.h chdk_ptp.h 27cp ptp2/chdk_live_view.h chdk_live_view.h 28diff -ur ptp2/device-flags.h device-flags.h 29 30echo "Finished!" 31