rpms/mtools/devel amuFormat.sh, NONE, 1.1 mtools.spec, 1.28, 1.29 mtools-3.9.10-sh.patch, 1.2, NONE

Adam Tkac (atkac) fedora-extras-commits at redhat.com
Fri May 11 16:19:12 UTC 2007


Author: atkac

Update of /cvs/pkgs/rpms/mtools/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23063

Modified Files:
	mtools.spec 
Added Files:
	amuFormat.sh 
Removed Files:
	mtools-3.9.10-sh.patch 
Log Message:
in the end script has been completely rewriten



--- NEW FILE amuFormat.sh ---
#!/bin/sh
#
#  amuFormat.sh  Formats various types and sizes of PC-Cards, according to the
#  AMU-specification
#
#  parameters:   $1:   Card Type: The Card Type is written as disk/volume-label
#                      to the boot-record
#                      The string should have a length of max. 11 characters.
#
#                $2:   Drive character (b:, c:)
#
#  10-12-2003    lct   created
#
vers=1.4

#echo "debug: $0,$1,$2,$3,$4"

#
# main()
#
if [ $# != 2 ] ; then
	cat <<-EOF

		Usage: amuFormat.sh <Card Type> <drive>
		<Card Type> has to be defined in amuFormat.sh itself
		<drive> has to be defined in mtools.conf
	EOF
	exit 0
fi

echo "amuFormat $vers started..."

drive=$2

case $1 in
8MBCARD-FW)
	## using the f: or g: drive for fat12 formatting...
	## see mtools.conf file...
	case $2 in
	[bB]:) drive="f:" ;;
	[cC]:) drive="g:" ;;
	*) echo "Drive $2 not supported."; exit 1 ;;
	esac
	cylinders=245 heads=2 cluster_size=8
	;;
32MBCARD-FW)
	#from amu_toolkit_0_6:
	#mformat -t489 -h4 -c4 -n32 -H32 -r32 -vPC-CARD -M512 -N0000 c:
	cylinders=489 heads=4 cluster_size=4
	;;
64MBCARD-FW)
	echo "***** WARNING: untested on AvHMU, exiting *****"
	exit 1
	cylinders=245 heads=2 cluster_size=8
	;;
1GBCARD-FW)
	# from amu_toolkit_0_6:
	#mformat -t2327 -h16 -c64 -n63 -H63 -r32 -v AMU-CARD -M512 -N 0000 c:
	echo "***** WARNING: untested on AvHMU *****"
	cylinders=2327 heads=16 cluster_size=64
	;;
64MBCARDSAN)
	# from amu_toolkit_0_6:
	#mformat -t489 -h8 -c4 -n32 -H32 -r32 -v AMU-CARD -M512 -N 0000 c:
	cylinders=489 heads=8 cluster_size=4
	;;
#
# insert new cards here...
#
*)
	echo "Card not supported."
	exit 1
	;;
esac

echo "Formatting card in slot $2 as $1"

## initialise partition table
mpartition -I $drive

# write a partition table
mpartition -c -t$cylinders -h$heads -s32 -b32 $drive

## write boot-record, two FATs and a root-directory
mformat -c$cluster_size -v "$1" $drive

minfo $2
mdir  $2

echo "done."


Index: mtools.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mtools/devel/mtools.spec,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- mtools.spec	11 May 2007 13:47:40 -0000	1.28
+++ mtools.spec	11 May 2007 16:18:38 -0000	1.29
@@ -1,10 +1,11 @@
 Summary: Programs for accessing MS-DOS disks without mounting the disks
 Name: mtools
 Version: 3.9.10
-Release: 6%{?dist}
+Release: 7%{?dist}
 License: GPL
 Group: Applications/System
 Source: http://mtools.linux.lu/mtools-%{version}.tar.bz2
+Source1: amuFormat.sh
 Url: http://mtools.linux.lu/
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Patch0: mtools-3.9.6-config.patch
@@ -14,7 +15,6 @@
 Patch4: mtools-3.9.9-noargs.patch
 Patch5: mtools-3.9.9-badc.patch
 Patch6: mtools-memset.patch
-Patch7: mtools-3.9.10-sh.patch
 Requires: info
 
 BuildRequires: texinfo
@@ -36,9 +36,10 @@
 %patch4 -p1 -b .noargs
 %patch5 -p1 -b .badc
 %patch6 -p1 -b .memset
-%patch7 -p1 -b .bash
 
 %build
+cp -f %{SOURCE1} scripts/
+
 %configure
 make %{?_smp_mflags}
 
@@ -72,6 +73,9 @@
 %{_infodir}/*
 
 %changelog
+* Fri May 11 2007 Adam Tkac <atkac redhat com> 3.9.10-7.fc7
+- in the end script has been completely rewriten by <skasal at redhat.com>
+
 * Fri May 11 2007 Adam Tkac <atkac redhat com> 3.9.10-6.fc7
 - some minor changes in sh patch (changed sh to bash)
 


--- mtools-3.9.10-sh.patch DELETED ---




More information about the fedora-extras-commits mailing list