From be2066c426699d84ce2b40749df6d218ee90f81f Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 15 Apr 2009 15:35:59 +0100 Subject: Added license notice to all files --- includes/cd-includes.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'includes/cd-includes.sh') diff --git a/includes/cd-includes.sh b/includes/cd-includes.sh index e3d00fd..b9c3a3c 100644 --- a/includes/cd-includes.sh +++ b/includes/cd-includes.sh @@ -1,3 +1,18 @@ +# Copyright 2009 Nick White +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# 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. +# +# See for a copy of the GNU General +# Public License. + ### default variables ### [ -z "$CDMOUNT" ] && export CDMOUNT="/media/cdrom" -- cgit v1.2.3 From 9d977397941833ab810eb41cd4c8895b40d929fc Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 16 Apr 2009 11:39:42 +0100 Subject: Removed obselete copycdextras function --- includes/cd-includes.sh | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'includes/cd-includes.sh') diff --git a/includes/cd-includes.sh b/includes/cd-includes.sh index b9c3a3c..e234c9b 100644 --- a/includes/cd-includes.sh +++ b/includes/cd-includes.sh @@ -53,15 +53,3 @@ function getcd return 0 } - -function copycdextras -{ - # usage: copycdextras cdnum - # essentially a case insensitive cp -R cd#/* - CDNUMBER=$1 - - for filename in $(find $CDMOUNT/[cC][dD]$CDNUMBER/ -type f || die); do - relativepath=$(echo $filename|gawk -F "$CDMOUNT/[cC][dD]$CDNUMBER" '{print $2}'|tr A-Z a-z) - cp $filename "$TARGETDIR"/$relativepath || die - done -} -- cgit v1.2.3