chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `make uninstall` does not uninstall the chicken-do manpage


From: Mario Domenech Goulart
Subject: Re: `make uninstall` does not uninstall the chicken-do manpage
Date: Wed, 04 Aug 2021 20:52:39 +0200

On Wed, 4 Aug 2021 21:43:31 +0300 Lassi Kortela <lassi@lassi.io> wrote:

>> I think the slightly tricky thing is finding out whether the directories
>> are actually empty after the CHICKEN core files are deleted (e.g., some
>> other program wrote files in there for whatever reason).  In case the
>> directories are not empty after the deletion of CHICKEN core files, I
>> think they should NOT be deleted.
>
> rmdir include/chicken || true
> rmdir lib/chicken || true
>
> rmdir refuses to delete non-empty directories.

Indeed, that does the trick on *nix, even though we won't be able to
catch rmdir errors in case it fails on empty directories, but I think
that's not too bad in this case.  Any idea how to do something
equivalent on Windows?

All the best.
Mario
-- 
http://parenteses.org/mario



reply via email to

[Prev in Thread] Current Thread [Next in Thread]