summaryrefslogtreecommitdiff
path: root/includes/cd-includes.sh
diff options
context:
space:
mode:
authornick <myownlittlworld@hotmail.com>2009-05-02 23:38:54 -0500
committernick <myownlittlworld@hotmail.com>2009-05-02 23:38:54 -0500
commite2f6690cc2cf57df3788a20f5be2dfbdf5d660b8 (patch)
tree023c1f657bd8e76080a1aa232c5e3238fecd1a2c /includes/cd-includes.sh
parentd400ae382e09b091fb372ffc9163273ff40ddb1d (diff)
parent28083ccefa13e4137afb300544072e7e176c7de8 (diff)
downloadgemrb-gameinstallers-e2f6690cc2cf57df3788a20f5be2dfbdf5d660b8.tar.bz2
gemrb-gameinstallers-e2f6690cc2cf57df3788a20f5be2dfbdf5d660b8.zip
Merged with latest from upstream.
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
-}