Hi Massimo, There are two problems with this:
1) Maybe I'm misunderstanding your proposal, but I can't really see the point of *generating* an xmate project file from hbmk2. I mean, what is the relevance of any existing hbmk2 logic in this process? hbmk2 is a make system itself, so using it to convert its parameters to xmate format falls rather out from its goals. Furthermore, I wonder who would like to convert hbmk2 input to xmate, where xmate is present since years, while hbmk2 is a few months old only. I'd rather favour the integration of hbmk2 into projects like xMate (but rather with a GPL license), I'd also prefer to invest effort to support open source and portable products (like hbmk2 itself is). xMate is Windows only and closed source AFAIK. Maybe *parsing* xmate project files could be useful for some current xmate users wanting to migrate to hbmk2, but even in this case I'd rather propose a converter tool (xmate -> hbm). 2) I don't know xMate and I don't even plan to use it, so it would be very difficult to develop / test / maintain any code related to it. Brgds, Viktor On Sun, May 24, 2009 at 10:22 PM, Massimo Belgrano <[email protected]> wrote: > Hi viktor can you add a --xmate who create a xmate project file? > > This is a way for integrate make system with hbmk2 > Integration of editor will be intresting fir win user > > FUNCTION CREA_XMATE(filechoice,libadditive) > local a_xmate:={},A > LOCAL X_LOG,X_MATE > AADD(A_XMATE,"[Version]") > AADD(A_XMATE,"Type=xMate") > AADD(A_XMATE,"Number=1.15") > AADD(A_XMATE,"") > AADD(A_XMATE,"[Info]") > AADD(A_XMATE,"Type=Executable") > AADD(A_XMATE,"Architecture=harbour") > AADD(A_XMATE,"Include=") > AADD(A_XMATE,"Define=") > AADD(A_XMATE,"") > AADD(A_XMATE,"[xMate]") > AADD(A_XMATE,"Create Map/List File=No") > AADD(A_XMATE,"") > AADD(A_XMATE,"[Project]") > AADD(A_XMATE,"Run=") > AADD(A_XMATE,"Params=") > AADD(A_XMATE,"Final Path=%HOME%") > AADD(A_XMATE,"Maintain LNK=Yes") > AADD(A_XMATE,"Default Type=1") > AADD(A_XMATE,"Error log=") > AADD(A_XMATE,"") > AADD(A_XMATE,"[Data Path]") > AADD(A_XMATE,"Dbf=") > AADD(A_XMATE,"") > AADD(A_XMATE,"[Editor]") > FOR A=1 TO LEN(FILECHOICE) > AADD(A_XMATE,ALLTRIM(FILECHOICE[A])+"="+STR(A)+",N,N") > NEXT > AADD(A_XMATE,"") > AADD(A_XMATE,"") > AADD(A_XMATE,"[Files]") > FOR A=1 TO LEN(FILECHOICE) // add each nomefile > AADD(A_XMATE,ALLTRIM(FILECHOICE[A])+"="+STR(A)+",.F.,0,0,") > NEXT > > for a=1 to len(libadditive) > AADD(A_XMATE,"%HB_LIB_INSTALL%\"+libadditive[a]+"="+str(a)+",.T.,0,0,") > next a > xprjmate=aLltrim(filechoice[1]) > xprjmate=substr(XPRJMATE,1,len(xPRJmate)-4) +".xhp" > if .not. file(XPRJMATE) > X_LOG=FCREATE(XPRJMATE) > FOR a=1 to len(A_XMATE) > FWRITE(X_LOG,A_XMATE[a]+CHR(13)+CHR(10)) > NEXT > > FCLOSE(X_LOG) > ENDIF > RUN(XPRJMATE) > > -- > Massimo Belgrano > _______________________________________________ > Harbour mailing list > [email protected] > http://lists.harbour-project.org/mailman/listinfo/harbour > _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
