ok, here it is: mintupgr.sh although it started out as the initial script by Peter, it no longer bears any resemblance I think I have got all the bugs ironed out it will work on auto-detect under MiNT. it can run under non-MiNT, uses defaults if auto-detecting if you set the defaults, just supply a .bz2, it will only cp/mv the MINT.PRG & XAAES.KM for that system (without renaming) if you want a complete install supply --drivers --extras as well, the folder will be called "install" instead of "upgrade" If does way more that most people will need, check --help if you dont have a complete system (SpareMiNT/EasyMiNT/GentooMiNT) you can get a small archive with the required files.. (--requires or --info) You should be able to pass any valid path to the FreeMiNT archive, bit I designed it to work out of the current directory That is one of the lesser defaults that be can modified, along with all the folder names and unique id, quiet, and copy/move Anyway, see what you think, let me know if you find any bugs.. it should do just about any system, but not invalid ones (had000, stv4e).. use --presets to get a quick list of common machines (ie Falcon, CT6x, ARAnyM, etc), both Milan and Hades will get you an 060 configuration (based on the fact Peter has a mil060) if you prefix your normal options with --help it will show you a dry run, adding the --list-xxxxxxx options will show all listed files (ls) but only if you supply an archive (ie normal options) unknown --options are droped, you can get a list of suitable drivers with --help _system_type_ --drivers, anyone with knowledge of a specific platform driver set, double check you are getting what you expect (thats what the apparent random posting was for), I dont know if I got everything.. and some may still be wrong.. if you use move (instead of copy) and it detects a previous extraction (they dont get deleted), it should extract over the folder, this depends on the uniqueness of the folder names the --info and --help should show current machine, which is set to ara040, but it also has auto-detect on, so if you have a mint machine it will auto-detect if you do heaps of kernel tests, use a hires unique id (its #'d in the script). One last thing, it places "archive.txt" in the destination, which contains the name of the .bz2 used, if you need that info for some reason.. Cheers Paul
Attachment:
mintupgr.sh
Description: Bourne shell script