-Build "fix" for morphos
-Makefile fix for linux. This one should work ok on linux and windows as it did before, but not on amiga. The amiga packing procedure is quite different anyway, so I think that's ok. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1207 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
		
							parent
							
								
									c6a783c741
								
							
						
					
					
						commit
						5671297542
					
				
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							@ -338,7 +338,7 @@ release : version $(BIN)
 | 
			
		||||
 | 
			
		||||
# Create a zip archive ready for upload to the website, including binaries and sourcecode
 | 
			
		||||
ziprelease: version $(BIN) release
 | 
			
		||||
	echo `sed "s/.*=\"\\\(.*\\\)\";/\1/" pversion.c`.`svnversion` | tr " :" "_-" | sed -e "s/\\\(wip\\\)\\\\./\\1/I" > $(OBJDIR)/versiontag
 | 
			
		||||
	echo `sed "s/.*=\"\(.*\)\";/\1/" pversion.c`.`svnversion` | tr " :" "_-" | sed -e "s/\(wip\)\\./\1/I" > $(OBJDIR)/versiontag
 | 
			
		||||
 | 
			
		||||
	tar cvzf "src-`cat $(OBJDIR)/versiontag`.tgz" --transform 's,^,src/,g' *.c *.h Makefile Makefile.dep gfx2.ico 
 | 
			
		||||
	$(ZIP) $(ZIPOPT) "grafx2-`cat $(OBJDIR)/versiontag`$(TTFLABEL)-$(PLATFORM).$(ZIP)" $(BIN) gfx2def.ini scripts/test.lua $(SKIN_FILES) gfx2.gif doc/README.txt doc/COMPILING.txt doc/gpl-2.0.txt fonts/8pxfont.png doc/README-zlib1.txt doc/README-SDL.txt doc/README-SDL_image.txt doc/README-SDL_ttf.txt doc/README-lua.txt fonts/Tuffy.ttf src-`cat $(OBJDIR)/versiontag`.tgz $(PLATFORMFILES)
 | 
			
		||||
 | 
			
		||||
@ -1238,7 +1238,11 @@ byte Button_Load_or_Save(byte load, byte image)
 | 
			
		||||
              temp=(!remove(Main_filename));
 | 
			
		||||
            else // Si c'est un repertoire
 | 
			
		||||
              // On efface le repertoire (si on peut)
 | 
			
		||||
#if defined(__MORPHOS__)
 | 
			
		||||
  #warning rmdir does not exist ! Please fix this !
 | 
			
		||||
#else
 | 
			
		||||
              temp=(!rmdir(Main_filename));
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
            if (temp) // temp indique si l'effacement s'est bien passé
 | 
			
		||||
            {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user