summaryrefslogtreecommitdiff
path: root/includes/cd-includes.sh
diff options
context:
space:
mode:
Diffstat (limited to 'includes/cd-includes.sh')
-rw-r--r--includes/cd-includes.sh27
1 files changed, 15 insertions, 12 deletions
diff --git a/includes/cd-includes.sh b/includes/cd-includes.sh
index 877aa57..e7c2526 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 <http://www.gnu.org/licenses/> for a copy of the GNU General
+# Public License.
+
### default variables ###
[ -z "$CDMOUNT" ] && export CDMOUNT="/media/cdrom"
@@ -62,15 +77,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
-}