From 2b8735a2de7435ba089a91ea9309aa2c20a7600f Mon Sep 17 00:00:00 2001 From: Christian Starkjohann Date: Mon, 20 Oct 2008 16:13:19 +0000 Subject: - added example project for testing driver reliability and features --- examples/drivertest/make-files.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 examples/drivertest/make-files.sh (limited to 'examples/drivertest/make-files.sh') diff --git a/examples/drivertest/make-files.sh b/examples/drivertest/make-files.sh new file mode 100755 index 0000000..3941d33 --- /dev/null +++ b/examples/drivertest/make-files.sh @@ -0,0 +1,34 @@ +#!/bin/sh +# Author: Christian Starkjohann +# Creation Date: 2008-04-17 +# Tabsize: 4 +# Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH +# License: GNU GPL v2 (see License.txt) or proprietary (CommercialLicense.txt) +# This Revision: $Id$ + + +if [ "$1" = remove ]; then + (cd firmware; make clean) + rm -rf firmware/usbdrv + rm -f firmware/osccal.[ch] + rm -f commandline/Makefile.windows + rm -f commandline/Makefile + rm -f commandline/opendevice.[ch] + exit +fi + +cat << \EOF | sed -n -f /dev/stdin ../usbtool/Makefile.windows >commandline/Makefile.windows +/^\( [*] \)\{0,1\}[+].*$/ d +s/^# Project: .*$/# Project: hid-custom-rq example/g +p +EOF + +cat << \EOF | sed -n -f /dev/stdin ../usbtool/Makefile >commandline/Makefile +/^\( [*] \)\{0,1\}[+].*$/ d +s/^# Project: .*$/# Project: hid-custom-rq example/g +s/^NAME = .*$/NAME = runtest/g +p +EOF + +cp ../../libs-host/opendevice.[ch] commandline/ +cp ../../libs-device/osccal.[ch] firmware/ -- cgit v1.2.3