Re: Delete all files but keep subdirectories
Posted: Thu Mar 22, 2018 4:08 pm
@broadblues:
Thanks, this works fine from a shell on MorphOS but it doesn't work from a makefile. When doing something like this:
Only the first command works. The second and third will fail with "EXECUTE: Can't open PIPE:mypipe. Object is in use".
When executing all three lines from a shell, however, it works fine. Well, I guess I should bug the MorphOS guys about it...
Thanks, this works fine from a shell on MorphOS but it doesn't work from a makefile. When doing something like this:
Code: Select all
clean:
list files LFORMAT "DELETE %s%s" dir1 TO PIPE:mypipe | execute PIPE:mypipe
list files LFORMAT "DELETE %s%s" dir2 TO PIPE:mypipe | execute PIPE:mypipe
list files LFORMAT "DELETE %s%s" dir3 TO PIPE:mypipe | execute PIPE:mypipe
When executing all three lines from a shell, however, it works fine. Well, I guess I should bug the MorphOS guys about it...