Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3129 in orxonox.OLD for orxonox/branches/images


Ignore:
Timestamp:
Dec 7, 2004, 8:54:09 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/images: pathlist now also accepts Paths from Windows.

Location:
orxonox/branches/images/importer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/images/importer/Makefile.in

    r3105 r3129  
    1 # Makefile.in generated by automake 1.8.5 from Makefile.am.
     1# Makefile.in generated by automake 1.8.2 from Makefile.am.
    22# @configure_input@
    33
     
    4242subdir = importer
    4343DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
    44         $(srcdir)/Makefile.in
     44        $(srcdir)/Makefile.in TODO
    4545ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    4646am__aclocal_m4_deps = $(top_srcdir)/configure.ac
     
    5050CONFIG_HEADER = $(top_builddir)/config.h
    5151CONFIG_CLEAN_FILES =
    52 am__installdirs = "$(DESTDIR)$(bindir)"
     52am__installdirs = $(DESTDIR)$(bindir)
    5353binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
    5454PROGRAMS = $(bin_PROGRAMS)
     
    206206install-binPROGRAMS: $(bin_PROGRAMS)
    207207        @$(NORMAL_INSTALL)
    208         test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
     208        $(mkdir_p) $(DESTDIR)$(bindir)
    209209        @list='$(bin_PROGRAMS)'; for p in $$list; do \
    210210          p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
     
    212212          ; then \
    213213            f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
    214            echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
    215            $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
     214           echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
     215           $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
    216216          else :; fi; \
    217217        done
     
    221221        @list='$(bin_PROGRAMS)'; for p in $$list; do \
    222222          f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
    223           echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
    224           rm -f "$(DESTDIR)$(bindir)/$$f"; \
     223          echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
     224          rm -f $(DESTDIR)$(bindir)/$$f; \
    225225        done
    226226
     
    281281          $(AWK) '    { files[$$0] = 1; } \
    282282               END { for (i in files) print i; }'`; \
    283         if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
    284           test -n "$$unique" || unique=$$empty_fix; \
    285           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
    286             $$tags $$unique; \
    287         fi
     283        test -z "$(ETAGS_ARGS)$$tags$$unique" \
     284          || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
     285             $$tags $$unique
    288286ctags: CTAGS
    289287CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
     
    340338all-am: Makefile $(PROGRAMS) $(HEADERS)
    341339installdirs:
    342         for dir in "$(DESTDIR)$(bindir)"; do \
    343           test -z "$$dir" || $(mkdir_p) "$$dir"; \
    344         done
     340        $(mkdir_p) $(DESTDIR)$(bindir)
    345341install: install-am
    346342install-exec: install-exec-am
  • orxonox/branches/images/importer/material.cc

    r3128 r3129  
    5858      return;
    5959    }
    60  
    61   if (access (pName, F_OK) == 0)
     60  char* tmpPName = new char[strlen(pName)];
     61  strncpy(tmpPName, pName, strlen(pName)-1);
     62
     63  if (access (tmpPName, F_OK) == 0)
    6264    {
    6365      struct stat status;
    64       stat(pName, &status);
     66      stat(tmpPName, &status);
    6567      if (status.st_mode & S_IFDIR)
    6668        {
     
    7981    if (verbose >=1)
    8082      printf ("You tried to add non-existing folder %s to a PathList.\n", pName);
     83  delete []tmpPName;
    8184}
    8285
Note: See TracChangeset for help on using the changeset viewer.