Line 1... |
Line 1... |
#!/bin/sh
|
#!/bin/sh
|
#
|
#
|
# makecopyright - put a copyright info into source files
|
# makecopyright - put a copyright info into source files
|
# Copyright (C) 2008-2009 ZTEX e.K., http://www.ztex.de
|
# Copyright (C) 2009-2010 ZTEX e.K., http://www.ztex.de
|
#
|
#
|
|
|
# writes the copyright info to stdout
|
# writes the copyright info to stdout
|
# $1 short description
|
# $1 short description
|
# $2 begin of comment
|
# $2 begin of comment
|
# $3 end of comment
|
# $3 end of comment
|
msg () {
|
msg () {
|
echo "$2
|
echo "$2
|
$1
|
$1
|
Copyright (C) 2008-2009 ZTEX e.K.
|
Copyright (C) 2009-2010 ZTEX e.K.
|
http://www.ztex.de
|
http://www.ztex.de
|
|
|
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
it under the terms of the GNU General Public License version 3 as
|
it under the terms of the GNU General Public License version 3 as
|
published by the Free Software Foundation.
|
published by the Free Software Foundation.
|
Line 56... |
Line 56... |
|
|
# copyright info for single directory
|
# copyright info for single directory
|
# $1 dir
|
# $1 dir
|
# $2 description
|
# $2 description
|
singledir () {
|
singledir () {
|
|
if [ ! -d $1 ]; then
|
|
echo "Directory not found: $1"
|
|
fi
|
for i in $1/*.pas $1/*.inc; do
|
for i in $1/*.pas $1/*.inc; do
|
singlefile "$i" "$2" "{*!" "!*}"
|
singlefile "$i" "$2" "{*!" "!*}"
|
done
|
done
|
for i in $1/*.c $1/*.h $1/*.java; do
|
for i in $1/*.c $1/*.h $1/*.java; do
|
singlefile "$i" "$2" "/*!" "!*/"
|
singlefile "$i" "$2" "/*!" "!*/"
|
Line 67... |
Line 70... |
}
|
}
|
|
|
rm -f files.tmp
|
rm -f files.tmp
|
|
|
singledir bmp/src "bmp -- babel macro processor"
|
singledir bmp/src "bmp -- babel macro processor"
|
singledir examples/usb-fpga-1.2/ucecho "ucecho -- example for ZTEX USB FPGA Module 1.2"
|
singledir examples/all/ucecho "ucecho -- uppercase conversion example for all EZ-USB devices"
|
|
singledir examples/all/ucecho/c "UCEcho -- C host software for ucecho examples"
|
|
singledir examples/usb-1.0/flashbench "flashbench -- Flash memory benchmark for ZTEX USB Module 1.0"
|
|
singledir examples/usb-1.0/flashdemo "flashdemo -- demo for Flash memory access from firmware and host software for ZTEX USB Module 1.0"
|
|
singledir examples/usb-fpga-1.2/flashbench "flashbench -- Flash memory benchmark for ZTEX USB FPGA Module 1.2"
|
|
singledir examples/usb-fpga-1.2/flashdemo "flashdemo -- demo for Flash memory access from firmware and host software for ZTEX USB FPGA Module 1.2"
|
|
singledir examples/usb-fpga-1.2/intraffic "intraffic -- example showing how the EZ-USB FIFO interface is used on ZTEX USB FPGA Module 1.2"
|
|
singledir examples/usb-fpga-1.2/standalone "standalone -- standalone firmware that supports FPGA configuration from FLASH and firmware loading from EEPROM for ZTEX USB FPGA Module 1.2"
|
|
singledir examples/usb-fpga-1.2/ucecho "ucecho -- uppercase conversion example for ZTEX USB FPGA Module 1.2"
|
|
singledir examples/usb-fpga-1.11/flashbench "flashbench -- Flash memory benchmark for ZTEX USB FPGA Module 1.11"
|
|
singledir examples/usb-fpga-1.11/flashdemo "flashdemo -- demo for Flash memory access from firmware and host software for ZTEX USB FPGA Module 1.11"
|
|
singledir examples/usb-fpga-1.11/intraffic "intraffic -- example showing how the EZ-USB FIFO interface is used on ZTEX USB FPGA Module 1.11"
|
|
singledir examples/usb-fpga-1.11/memtest "memtest -- DDR SDRAM FIFO for testing memory on ZTEX USB FPGA Module 1.11"
|
|
singledir examples/usb-fpga-1.11/standalone "standalone -- standalone firmware that supports FPGA configuration from FLASH and firmware loading from EEPROM for ZTEX USB FPGA Module 1.11"
|
|
singledir examples/usb-fpga-1.11/ucecho "ucecho -- uppercase conversion example for ZTEX USB FPGA Module 1.11"
|
singledir include "ZTEX Firmware Kit for EZ-USB Microcontrollers"
|
singledir include "ZTEX Firmware Kit for EZ-USB Microcontrollers"
|
#singledir java "Java utilities for the ZTEX Firmware Kit / Driver API"
|
|
singledir java "Firmware / Bitstream loader for the ZTEX Firmware Kit"
|
singledir java "Firmware / Bitstream loader for the ZTEX Firmware Kit"
|
singledir java/ztex "Java Driver API for the ZTEX Firmware Kit"
|
singledir java/ztex "Java Driver API for the ZTEX Firmware Kit"
|
|
|
files=`cat files.tmp`
|
files=`cat files.tmp`
|
wc $files
|
wc $files
|