home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
- DOKUMENTATION
-
-
- AddIcon VERSION 1.7 FREEWARE VERSION
-
-
- written 1992 von H.P.G.
-
- INDEX:
-
-
-
- INDEX
- General Description
- History
- System Requirements
- Legal Stuff
- FEATURES
- Installation
- Starting AddIcon
- AddIcon START PARAMETERs
- Tips
- BUGS
- Usage of AddIcon
- List of all known IconTypes
- Technical
- Last
- Address
- List of Files
-
-
-
-
- General Description:
-
- AddIcon [AI] is a cli tool that enables you to copy icons to
- files and dirs in a very easy manner.
-
- AI has a lot of cli options.
-
- AI supports PatternMatching (that means use of #? ~#? [a-u]) in
- filenames like original AmigaDOS standart.
-
- AddIcon needs OS 2.xx. Version 36 may have problems, because of
- some functions which have not been implemented in this version.
- Because of using a lot of the new OS 2.0 features, AI is not
- able to run under OS 1.2 and 1.3.
- It is recommented to use Kickstart versions greater than Version
- 36.
-
- The icons, AI adds to the specified files, must be located in
- the logical device or assign 'Icons:'.
- You can simply copy the Icons on this disk to your WBench disk.
- Then you have to insert the following line in to your
- Startup-Sequence:
-
- Assign Icons: <name of the dir your icons are located>
-
- AddIcon automatically knows many different types of files.
- AI recognizes the type of an file first by analysing its suffix
- '.xx' .
-
- E.g. a file with extension '.c' will always be analysed as a C
- source.
- Files with suffixes '.ilbm' will be recognized as PICTURES.
-
- If AI finds a file without suffix it looks in the file for
- Iff-Chunks.
-
- If AI finds no chunk it reads the file. If the file contains
- more than 90% ASCII chars it would be handeled as an ASCII file.
-
- Warning: On large files it can take a lot of time to read the
- file.
-
- If AI can find the type of file in this way it copies the icon
- according to the found type to it.
-
- Surely you can change the icons or use yourown icons with AI.
- So you can change e.g. the DefaultTool of a project icon to
- yourown need.
-
- If you use e.g TurboText as text editor, you can change the
- DefaultTool of the ASCII icon simply to 'c:TTX'. If you now
- doubleclick on this icon, TTX will be automatically called
- with the filename of the icon.
-
- This does the same with all other project icons. But the
- programms you want to start, must have be the ability of
- extended selections via WBench.
-
-
- History:
-
- Version 0.1 - 0.9:
-
- Beta versions whithout real functions. Only written for an
- exercise, to learn something about Amigas.
-
- Version 1.0 - 1.3
-
- Full functionable under Kickstart 1.3. With Intuition-interface
- but without type checking of icons, needs ARP.Library V 39.1.
-
- Version 1.4
-
- Enhancements of the user-interface. Exchange Arp.Library with
- using the new Req.Library.
-
- Version 1.5
-
- Enhancements of handling. New functions implemented.
-
- Version 1.6
-
- First OS 2.xx only version. Beta version. Still using old
- functions for command-line-parsing. Only a few Parameters.
-
- Version 1.61 - 1.68
-
- Enhancements and a lot of new functions. Consequently use of
- the new OS 2.xx functions. Output of the program enhanced.
- Faster type-checking while analyzation. New QUICK-, ASK- and
- UPDATE-options.
- Supports now Pattern-Matching.
-
- Version 1.7
-
- No more intution-interface is used.
- New ^C-Break-Handling. Now you can stop the program at each
- moment, withoutlosing memory or locks etc.
- New implementation of an EasyRequester, that ask if an ^C break
- is received, if you want to break or goon.
- Faster type-checking while analyzation. New, analyzing of IFF
- chunks. Now,AI is looking for the amount of ascii-chars in a
- file. AI now looks for its icons in the logical device 'ICONS:'.
- So more flexibility by using different sets of icons.
- AI now is able to add icons to the contents of a whole directory
- ( including Pattern-Matching).
- First general Release.
-
-
- System Requirements:
-
- For AI you need Kickstart 2.xx Version 37.xx.
-
- You must have the logical device named 'Icons:'.
- There should be all icons located , that are also in the
- Icons drawer on this Disk.
-
- Do not use AI for very large Files. It also takes a lot of time.
- AI allocates a buffer to hold the whole file in, so if it finds
- a large file you can not only wait a while but you can get a
- memory shortage. To prevent that use the QUICK options
- (see below).
-
-
- Legal Stuff:
-
-
- This program and all files come with it, also the docfiles,
- are released as FREEWARE.
-
- this means:
-
- everybody may use AddIcon,
-
- everybody may copy AddIcon, if:
-
- 1. You copy all included files, see list at the end of the
- doc file.
- 2. No changes are made, this means the program and all
- included files must stay in the original form.
- Exception: you may archieve it; but in this case you
- must also archieve the whole package.
- 3. If you recompile it, you have to include a notice to
- the original author. If you also want to (re)distribute
- in any new form you have to send me a copy.
- 4. You may not sell AddIcon.
- Execption: you`re allowed to take a small copy fee
- which should not extend 5US$.
- 5. If you want to include AddIcon
- or one of the included files as a part of a commercial
- package, you must have written permission of the
- author (address see below).
-
-
- I take no warranty or garanty for the function of this program.
- The whole risk of using AddIcon stays only by the user.
-
-
-
-
- FEATURES:
-
- - Full AmigaDOS standart PatternMatching support
-
- - take advantage of many new OS 2.xx features and is therefor
- very small
-
- - AddIcon knows a lot of different file types
-
- - It has an update option that lets you copy icons only to
- files and dirs which currently doesn`t own icons
-
- - Ask option enables the user to break AddIcon before copying
- anything
-
- - Quick option spents a lot of time by larger files
-
- - Automatic recognizing of IFF-Chunks in files
-
- - Analysing of files for binary and ascii chars
-
- - You can use yourown icons and different sets
-
- - Full information is given if any error occures
-
- - Full information about current status
-
-
- Installation:
-
-
- Simply copy AddIcon into your C: or any other directory in your
- current AmigaDOS searchpath.
-
- You should copy the Icons dir on this disk anywhere to your
- WorkBench disk.
-
- You should insert the following line in you Startup-Sequence
-
- .
- .
- .
-
- Assign Icons: <Path of your icon dir>
-
- .
- .
- .
-
-
- Starting AddIcon:
-
-
- You must start AddIcon from the Cli. Alternatively you can use
- the WBench menuitem 'Execute Command' and then type in the
- StringGadget AddIcon <parameter>.
-
-
-
- AddIcon START PARAMETERs:
-
-
- AI has the following
-
- Syntax: AddIcon <INFO/S|TO>[UPDATE/S][ASK/S][QUICK/S][QUIET/S]
- [NOCOL/S]
-
- INFO ------------ if you specify INFO, AddIcon gives
- out a list of all current known
- types of files and chunks and their
- icon types. The icons should be
- named dependent to the icon types
- in this list.
-
- TO String For TO you have to specify a dir
- or a filename. You have to specify
- the names without any '.info'. If
- TO is a dir there are different
- ways:
-
- 1. you want to copy an icon with the type DRAWER to
- a Dir:
-
- TO must be simply the name of the dir you wants
- to copy the icon to.
-
- Ex.: AddIcon sys:c
-
- In this case AI would copy an icon with the type
- DRAWER to SYS: with the name c.info
-
- 2. you wants to copy Icons to all files of the given
- dir:
-
- TO must end with a ':' or '/'.
-
- Ex.: AddIcon sys:text/
-
- In this case AddIcon would copy icons to all
- subdirectories of the given dir 'sys:text'
-
-
- UPDATE ------------ If you specify UPDATE, AddIcon
- only copies icons to files and
- dirs that currently doesn`t own
- any icon.
-
- ASK ------------ If you specify ASK, AddIcon askes
- you each time before it tries to
- copy an icon to cancel or go to
- the next.
-
- AI displays then this little Text:
-
- Do you want to create <ICON-Name> with the type
- <IconType> (y)es|(n)o|(c)ancel
-
- - if you tyoe in y, the Icon would be copied
- - if you type in c, the program terminates
- - if type in n or anything else, AddIcon looks
- for the next matching name.
-
- If you want to copy icons to dirs which contents
- are unknwon, you should use the ASK and QUICK
- option.
- AddIcon knows a lot of file types but not all.
- If you want to get sure that you not copy a wrong
- icon type to a file or to overwrite an existing
- icon you should also use the UPDATE option.
-
- QUICK ------------ if you specify Quick, you saves
- time if AddIcon find a file
- without suffix and wants to
- analyze it.
- In this case AI thinks files without
- suffix that are larger than 5 kbytes
- are from the type TOOL.
-
- QUIET ------------ AI informs you immediatly about its
- status. If you specify QUIET no
- informations except error messages
- will be sent out.
-
- NOCOL ------------ Usually AI writes its messages in
- two colors. If you want to prevent
- AI to do this, you can specify NOCOL.
- All output informations are send in
- black.
-
- Also if you use the INFO option.
-
-
- All options and PARAMETERs may occur in any order.
-
- If an error occures AI gives you a message.
-
-
- *** If you start AI without any PARAMETERs a little helptext will be
- *** given. This helptext comes also if you give AI a wrong Commandline
-
-
- Tips:
-
- You can easy use different sets of icons.
- You only have to change your Icons: assign.
- The best way to do this is to write a batch-script of the follwing
- kind Ex.:
-
- .OPT RELEASE
-
- if <RELEASE> EQ FISH
- assign ICONS: sys:FishDisks
- endif
- if (RELEASE> EQ NORMAL
- assign ICONS: sys:NormalIcons
- endif
- ...
-
-
- If this script is in your current AmigaDOS searchpath (e.g. S:)
- and you have set the S-Bit via 'Protect <Name> +s' you can use
- the icons in the sys:fishdisk dir with AI by typing
-
- 1> <Name> FISH ; Name = name of this batch script
-
- BUGS:
-
- (Is not a real Bug)
-
- AddIcon uses the official PatternMatching routines of the
- dos.library. So AddIcon is not able to use patterns like
-
- sys:utilities/a~(#?info)
-
- That means you should not use excluding patterns like ~(...),
- because AI adds intern a ~(#?.info) to your specified path.
-
- You should notice that the Dos PatternMatch routins adds no '/' to
- dir patterns. That means if you specify patterns, you cannot copy
- icons to a whole directory only to several dirs and files.
-
- Ex.: With 1> AddIcon sys:uti#?
-
- AddIcon would copy an icon with the Type DRAWER to
-
- sys:utilities.info
-
- But if you want to copy icons to each file of the dir
-
- 'sys:utilities'
-
- than you can type:
-
- 1> AddIcon sys:util#?/#?
-
- To each file in the dir sys:utilities an icon would be copyed.
-
-
- Usage of AddIcon:
-
- Here are some other examples:
-
- 1> AddIcon Ram:#? UPDATE ASK
-
- AI looks for the contents of your RamDisk, (assuming) which
- doesn`t own any icons.
- Then AI askes you for each entry if you want to copy the
- according icon. If all dirs and files in RamDisk owns an
- icon nothing happens.
-
- 1> AddIcon c:a#? QUICK
-
- AI uses the fast algorythm. To all files in the dir C:
- thats name starts with an 'A' a tool icon will be copyed.
-
- List of all known IconTypes:
-
- Icon TYPE Suffix of Types Description
- _________________________________________________________________________
- ASCII .asc Text
- PICTURE .iff .ilbm .pic .br Picture
- MUSIC .mod .med Music
- BATCHFILE .bat AmigaDOS script
- CSHSCRIPT .sh Csh-Script
- PAGESTREAM .tem PageStream document
- PREFS .prefs .config .cfg .def Preferences file
- ASM .asm .s ASM source
- SOURCE .c C source
- HEADER .h C header
- OBJECT .o Object file
- LIBRARY .library Library
- CLIB .lib .oss .osl .ols .oll C library
- DOC .readme .doc .dok .man Document
- REXX .rexx .dme Rexx script
- ANIM .anim Animation
- ASMINC .i ASM include
-
- In files without suffix AI searches for the following Iff-Chunks
-
- Icon Type Iff Chunk
-
- ILBM PICTURE
- SMUS MUSIC
- FTXT TEXT
- 8SVX MUSIC
- ANIM ANIM
-
- In files without suffix and without Iff-Chunk AI searches also for
- their amount of binaries and ascii-chars.
- If a file contains more than 90% ascii chars AddIcon handles the file
- like a textfile (TYPE ASCII).
-
- ( only if you do not use the QUICK-Option )
-
-
- Technical:
-
-
- AI is written in C with the Manx Aztec C V 5.2a - Compiler
-
- AI uses the new DOS ReadArgs functions for CommandLine-
- Parsing and the MatchFirst, MatchNext and MatchEnd functions
- for PatternMatching.
-
- Last:
-
- I hope AddIcon will be used by many peoples. If you find any
- bugs please send me a message.
- Also serious critic and/or new ideas are wellcomed.
-
- Address:
-
- Send all messages to:
-
- Hans - Peter Guenther
-
- Gruener Weg 5
-
- 3501 Fuldatal 2
-
- ( B.R.D )
-
- List of Files:
-
- (If any of the following Files is not in this Release you`ve got an
- incomplete one. Please let me know.)
-
-
-
- List csrc:AddIcon LFormat "%s"
-
- AddIcon.dok : German documentation
- AddIcon.dok.info
- AddIcon.doc : English documentation
- AddIcon.doc.info
- AddIcon : The binary
- AddIcon.info
- ReadMeFirst.doc : English short overview
- ReadMeFirst.doc.info
- ReadMeFirst.dok : German short overview
- ReadMeFirst.dok.info
- LegalStuff.doc : English LegalStuff
- LegalStuff.doc.info
- Rechtliches.dok : German LegalStuff
- LegalStuff.doc.info
- Icons (dir) : This dir contains several icons from several
- authors and is not copyrighted.
-
- ---
- END
-
-
-
-
- Have fun ...
-
- H.P.G
-
-
-
-