Changeset 223


Ignore:
Timestamp:
May 22, 2003, 6:58:44 PM (22 years ago)
Author:
bird
Message:

Proper versioning for EMX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    • Property cvs2svn:cvs-rev changed from 1.24 to 1.25
    r222 r223  
    309309all-versionstamps: $(PATH_OBJ)/.ts.versionstamped
    310310$(PATH_OBJ)/.ts.versionstamped:
     311        echo '#define INNOTEK_VERSION="$(INNOTEK_VERSION)"' > include/innotekversion.h
    311312        $(MAKE) -f $(MAKEFILE) "INNOTEK_VERSION=$(INNOTEK_VERSION)" gcc-versionstamps binutils-versionstamps emx-versionstamps
    312313        mkdir -p $(@D)
     
    910911                                       
    911912# easy, update same stuff in a bunch of files.
     913# actually, nothing any long as the global innotekversion.h takes care of it
     914# together with proper dependencies.
    912915EMX_FILE_VER = \
    913916emxbind/emxbind.h emxcat/emxcat.c emxdoc/emxdoc.c emxexp/emxexp.c emximp/emximp.c \
     
    916919emx-versionstamps:
    917920        @echo "Version stamping EMX..."
    918         @for file in $(EMX_FILE_VER); \
    919     do \
    920                 echo "   src/emx/src/$$file" && \
    921                 if (cp -f $(PATH_TOP)/src/emx/src/$$file $(PATH_TOP)/src/emx/src/$$file.tmp && \
    922                         sed -e '/#[\t ]*define[\t ]*VERSION[\t ]*/s/"0\.9d.*"/"0.9d $(INNOTEK_VERSION)"/' \
    923                                 $(PATH_TOP)/src/emx/src/$$file.tmp > $(PATH_TOP)/src/emx/src/$$file && \
    924                         rm -f $(PATH_TOP)/src/emx/src/$$file.tmp) ; \
    925                 then true; \
    926                 else exit 1; \
    927                 fi; \
    928         done
    929 
    930921                                                                       
    931922# Install the compiled emx stuff to builttools.
Note: See TracChangeset for help on using the changeset viewer.