Apache OpenOffice (AOO) Bugzilla – Issue 29609
"if exist .." used for non 4NT builds
Last modified: 2013-08-07 15:34:52 UTC
The DOS/4NT check "if exist ..." is used also for tcsh (cygwin) builds in some places in solenv.
Oops, this was supposed to be a reminder issue for me. I take it! Target 2.0 is good enough, nobody complained for 1.1.x.
I was just thinking about defining the following: .IF "$(USE_SHELL)"=="4nt" IFEXIST:=if exist THEN:= .ELSE IFEXIST:=if ( -e THEN:=) .ENDIF and add /Q to RMFLAGS in wnt/macros.mk And then replacing the remaining if exist $@ $(RM) /q $@ >& $(NULLDEF) with $(IFEXIST) $@ $(THEN) $(RM) >& $(NULLDEF) vq->ause: What is the best place to put the $(IFEXIST)/$(THEN) definition? unitools.mk?
haven't seen this issue before. nice idea! yes, "unitools.mk" is fine.
Created attachment 15627 [details] Patch for solenv/inc
The previous patch exchanges all "if exist" constructs with $(IFEXIST)/$(THEN). I didn't include the autogenerated _tg_* files and the issue also includes some bits from issue 29607, but there would be a conflict anyway. The patch is generated against ooo_20040509. vq-hjs: Please check and approve. There are still other 4nt issues, e.g. for/type/dir, but that can be fixed in a followup patch.
> vq-hjs: Please check and approve. There are still other 4nt issues, e.g. > for/type/dir, but that can be fixed in a followup patch. Just assign back to me, when you approve/agree, I'll commit an adjusted patch to ooo20040620.
patch looks fine!
didn't reassign...
Hi Volker, as Martin pointed out on the releases list we are coming closer to 2.0 Beta. http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=8258 Is your work making progress and would be ready for 2.0 as the target milestone indicates? Thanks, Stefan
Later ...
Committed to vq12
vq->ause: Please verify. I guess this patch touches some parts of the build system that are not used for OOo files, because "type" and "dir" are used in some places and they have a different meaning/give different results for tcsh compared to 4nt but the build works nevertheless.
.