Search found 108 matches
- Thu Mar 22, 2018 9:42 pm
- Forum: General AmigaOS
- Topic: Delete all files but keep subdirectories
- Replies: 12
- Views: 5075
Re: Delete all files but keep subdirectories
MorphOS team says it's not allowed to use non-ixemul programs in makefiles so I'm now doing find dir1 -type f -maxdepth 1 -exec rm -f {} \; find dir2 -type f -maxdepth 1 -exec rm -f {} \; find dir3 -type f -maxdepth 1 -exec rm -f {} \; instead. On OS4 I can probably use the version suggested by broa...
- Thu Mar 22, 2018 4:08 pm
- Forum: General AmigaOS
- Topic: Delete all files but keep subdirectories
- Replies: 12
- Views: 5075
Re: Delete all files but keep subdirectories
@broadblues: Thanks, this works fine from a shell on MorphOS but it doesn't work from a makefile. When doing something like this: 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:...
- Wed Mar 21, 2018 10:34 pm
- Forum: General AmigaOS
- Topic: Delete all files but keep subdirectories
- Replies: 12
- Views: 5075
Re: Delete all files but keep subdirectories
@Niels: The ALL parameter isn't needed for my case because I don't want to recurse into subdirectories so I don't need ALL.
- Wed Mar 21, 2018 9:53 pm
- Forum: General AmigaOS
- Topic: Delete all files but keep subdirectories
- Replies: 12
- Views: 5075
Re: Delete all files but keep subdirectories
I guess this only works on OS4? I'm currently on MorphOS and it doesn't seem to recognize IN:
- Wed Mar 21, 2018 9:22 pm
- Forum: General AmigaOS
- Topic: Delete all files but keep subdirectories
- Replies: 12
- Views: 5075
Re: Delete all files but keep subdirectories
Thanks, I need just one level. So where does the directory to be scanned go? Should IN: be substituted by the directory to be scanned?
- Wed Mar 21, 2018 8:35 pm
- Forum: General AmigaOS
- Topic: Delete all files but keep subdirectories
- Replies: 12
- Views: 5075
Delete all files but keep subdirectories
Is it possible to delete all files with the DELETE command but keep subdirectories? I've tried
but it will delete subdirectories if they're empty. I'd like to keep them. Only files should be deleted from sys:test. Is it possible?
Code: Select all
delete sys:test/#?
- Sat Mar 17, 2018 12:40 pm
- Forum: General Developer Support
- Topic: Do we have a C++11 compatible compiler for OS4?
- Replies: 4
- Views: 2315
Do we have a C++11 compatible compiler for OS4?
AFAICS the latest SDK comes with gcc 4.2.4 which doesn't support C++11. Is there anything newer available? I think we'd need at least gcc 4.8 for proper C++11 support.
- Wed Jan 10, 2018 11:58 pm
- Forum: General Developer Support
- Topic: Is glGetTexLevelParameteriv() supported by MiniGL?
- Replies: 2
- Views: 2133
Is glGetTexLevelParameteriv() supported by MiniGL?
I'm trying to get some info from a texture: int texwidth = 0, texheight = 0, fmt = 0; glBindTexture(textureTarget, id); glGetTexLevelParameteriv(textureTarget, 0, GL_TEXTURE_COMPONENTS, &fmt); glGetTexLevelParameteriv(textureTarget, 0, GL_TEXTURE_WIDTH, &texwidth); glGetTexLevelParameteriv(t...
- Mon Dec 11, 2017 5:22 pm
- Forum: Platform: AmigaOne X5000 - Linux Only
- Topic: ubuntu MATE 16.04.1 LTS Live USB
- Replies: 119
- Views: 75623
Re: ubuntu MATE 16.04.1 LTS Live USB
Checked it but it didn't change anything. It still failed with "host is down" error.
- Mon Dec 11, 2017 5:18 pm
- Forum: Platform: AmigaOne X5000 - Linux Only
- Topic: Spectre660's Linux downloads for the X5000
- Replies: 242
- Views: 140868
Re: Spectre660's Linux downloads for the X5000
So I installed Linux Mate for the X5000 using the instructions provided here but I always still need the USB stick to start Linux (I need to plug in the stick and then type "run ubuntu" in the firmware). The boot files are then loaded from the USB stick before Linux boots from my HD. Is th...