#!/bin/sh

echo "Copying PC/SC files to specified project directory"
echo
echo
echo "Updating PCSC.framework"
cp debuglog.c $1/pcsc-framework
cp debuglog.h $1/pcsc-framework
cp eventhandler.h $1/pcsc-framework
cp pcsclite.h $1/pcsc-framework
cp readerfactory.h $1/pcsc-framework
cp sys_generic.h $1/pcsc-framework
cp sys_unix.c $1/pcsc-framework
cp thread_generic.h $1/pcsc-framework
cp winscard.h $1/pcsc-framework
cp winscard_clnt.c $1/pcsc-framework
cp winscard_msg.c $1/pcsc-framework
cp winscard_msg.h $1/pcsc-framework
cp wintypes.h $1/pcsc-framework

echo
echo
echo "Updating pcsc daemon"
cp atrhandler.c $1/pcsc-daemon
cp atrhandler.h $1/pcsc-daemon
cp configfile.c $1/pcsc-daemon
cp configfile.h $1/pcsc-daemon
cp debuglog.c $1/pcsc-daemon
cp debuglog.h $1/pcsc-daemon
cp dyn_generic.h $1/pcsc-daemon
cp dyn_macosx.c $1/pcsc-daemon
cp eventhandler.c $1/pcsc-daemon
cp eventhandler.h $1/pcsc-daemon
cp hotplug.h $1/pcsc-daemon
cp hotplug_macosx.c $1/pcsc-daemon
cp ifdhandler.h $1/pcsc-daemon
cp ifdwrapper.c $1/pcsc-daemon
cp ifdwrapper.h $1/pcsc-daemon
cp pcscdaemon.c $1/pcsc-daemon
cp pcsclite.h $1/pcsc-daemon
cp powermgt_macosx.c $1/pcsc-daemon
cp prothandler.c $1/pcsc-daemon
cp prothandler.h $1/pcsc-daemon
cp readerfactory.c $1/pcsc-daemon
cp readerfactory.h $1/pcsc-daemon
cp sys_generic.h $1/pcsc-daemon
cp sys_unix.c $1/pcsc-daemon
cp thread_generic.h $1/pcsc-daemon
cp thread_macosx.c $1/pcsc-daemon
cp winscard.c $1/pcsc-daemon
cp winscard.h $1/pcsc-daemon
cp winscard_msg.c $1/pcsc-daemon
cp winscard_msg.h $1/pcsc-daemon
cp winscard_svc.c $1/pcsc-daemon
cp winscard_svc.h $1/pcsc-daemon
cp wintypes.h $1/pcsc-daemon

