URL
https://opencores.org/ocsvn/usb_fpga_1_2/usb_fpga_1_2/trunk
Subversion Repositories usb_fpga_1_2
[/] [usb_fpga_1_2/] [trunk/] [makecopyright] - Rev 7
Go to most recent revision | Compare with Previous | Blame | View Log
#!/bin/sh
#
# makecopyright - put a copyright info into source files
# Copyright (C) 2009-2010 ZTEX e.K., http://www.ztex.de
#
# writes the copyright info to stdout
# $1 short description
# $2 begin of comment
# $3 end of comment
msg () {
echo "$2
$1
Copyright (C) 2009-2010 ZTEX e.K.
http://www.ztex.de
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
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, see http://www.gnu.org/licenses/.
$3"
}
readonly=no
# copyright info for single file
# $1 file
# $2 short description
# $3 begin of comment
# $4 end of comment
singlefile () {
# if [ ! -f "$1" -o -f "$1.tmp" ]; then
if [ ! -f "$1" ]; then
return
fi
echo "$1"
if [ "$readonly" = "no" ]; then
mv "$1" "$1.tmp"
(
msg "$2" "$3" "$4"
echo "@@@define[$3][$4
][]" | bmp -mm "@@@" - "$1.tmp"
) > "$1"
rm -f "$1.tmp"
fi
echo "$1" >> files.tmp
}
# copyright info for single directory
# $1 dir
# $2 description
singledir () {
if [ ! -d $1 ]; then
echo "Directory not found: $1"
fi
for i in $1/*.pas $1/*.inc; do
singlefile "$i" "$2" "{*!" "!*}"
done
for i in $1/*.c $1/*.h $1/*.java; do
singlefile "$i" "$2" "/*!" "!*/"
done
}
rm -f files.tmp
singledir bmp/src "bmp -- babel macro processor"
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 java "Firmware / Bitstream loader for the ZTEX Firmware Kit"
singledir java/ztex "Java Driver API for the ZTEX Firmware Kit"
files=`cat files.tmp`
wc $files
rm -f files.tmp
Go to most recent revision | Compare with Previous | Blame | View Log