re: Re: FreeDOS UNINSTALL wanted / DEL @listfile tool wanted
Eric Auer <[email protected]>
| Newsgroups | gmane.os.freedos.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, thanks for your help offer. Feel free to keep us updated on your results :-). By the way, I did deliberately not use -r with rm, because I do NOT want to remove non-empty dirs. Imagine a .zip that contains bin\ bin\something.com that would cause you to blow away the whole bin\ when uninstalling it. So I prefer using rmdir for that... Maybe for example rmdir -ignore-fail-on-non-empty for all lines of zipinfo -1 output that end with a / :-). Here some example "install" and "uninstall" of test.zip ... eric@parker:/tmp/ramdisk/eric > export LANG='US' eric@parker:/tmp/ramdisk/eric > unzip test.zip Archive: test.zip creating: foo/ extracting: foo/bar extracting: baz eric@parker:/tmp/ramdisk/eric > rm -vf $( zipinfo -1 test.zip | grep -v /$ ) ; rmdir --verbose $( zipinfo -1 test.zip | grep /$ ) removing foo/bar removing baz rmdir: removing directory, foo: No such file or directory ... Well, I will spare you from other Linux examples, finally the idea was to install/uninstall with DOS. By the way, please do not use .DEB too much. My aim was to work with ZIP files as most DOS software can be downloaded as a ZIP. Only software explicitly packaged in .DEB would be useable with an installer that is .DEB oriented. Feel free to auto-detect DEB and make use of additional features like dependency checking and auto-configuration-update on install, WHEN the package is found to be in DEB format. Otherwise, please make use of the simpler ZIP approach. Eric