AminetAminet
Search:
82053 packages online
About
Recent
Browse
Search
Upload
Setup
Services

misc/unix/dcalc1_2.c.Z

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Update! C source (UNIX) Fit files onto diskettes (v1.2)
Author:ukrbake at prl.philips.co.uk
Uploader:ukrbake prl philips co uk
Type:misc/unix
Architecture:generic
Date:1994-01-11
Download:http://aminet.net/misc/unix/dcalc1_2.c.Z - View contents
Readme:http://aminet.net/misc/unix/dcalc1_2.c.readme
Downloads:715
	dcalc v1.2
	----------
This is a short(-ish) C proggy to aid in transferring files from Aminet (or
wherever) onto PC format disks, and back to an amiga.  It is very simple to
use, but is flexible too.

The file is in UNIX compress format - use "uncompress dcalc.c" to get the
source.  The source is ANSI C, and calls three UNIX commands.. ls, rm, mv.
The commands can easily be altered to suit your system.

dcalc will scan directories (default is current), include and exclude files,
and then fit them onto disks as best it can.  You can specify the size of
disk, directory, and a load of stuff. 

Here's the help text from the program itself:
( options marked *NEW* are new in v1.1 )

Usage:  dcalc [ path ... ] [ option ... ]
 path = path to scan for files
 option is one of the following:
   -hd = fit onto IBM 1.44MB high density disks
   -dd = fit onto IBM 720K disks (default)
   -s NNN = fit onto disk of size NNN
   -reserve NNN = reserve NNN of the disk for filesystem, etc.   *NEW*
             (default is 1% to be safer)			 *FIXED*
   -o file = send output to file
   -ls path ... = add more paths
   -in "pat" = include files matching pattern (* ? wild)
   -ex "pat" = exclude files matching pattern
   -rename = rename files for easy copying (A_file1 B_file2 ...) 
   -backup = use MSDOS backup mode, fit files across disks
  NNN is I  for I     bytes (  400 ==     400 bytes)		*NEW*
         Ik for I kilobytes (   1k ==    1024 bytes)		*NEW*
         Fm for F megabytes ( 1.4m == 1048576 bytes)		*NEW*
         Fp for F % of disk space (cannot be used with -s)	*NEW* *FIXED*
 I is any integer (whole number), F any float (real number)

The pattern matching needs to have "" around it, or I find that it is expanded
before being passed onto the program.  * matches any characters, and ? matches
any single character.

The source and program are freeware, and may be modified at will. I accept no
responsibility for this program, and the use of it.  It may not be distributed
for more than a nominal media and copying fee.

History
-------
v1.0
First released version.
v1.1
This fixes a bug with lettering disks, and adds more flexibility to specifying
disk size. ( Now handles bytes, kbytes, Mbytes ) . Added -reserve , to stop
disks from being filled dangerously full, can leave space for filesystem.
v1.2
Fixed more bugs with reserving space and using % of disks.

 Mark Baker.

Send bug reports, etc.. to ukrbake at prl.philips.co.uk

Aminet © 1992-2017 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>