home *** CD-ROM | disk | FTP | other *** search
- #
- # sgs.make
- #
- # Hacks to support use of NeXT's internal SGS tool set
-
-
- #
- # Generation of a version string if project lives in correct directory name
- # To activate this feature, put your source code in a directory named
- # $(NAME).%d[.%d][.%d] and set OTHER_GENERATED_OFILES = $(VERS_OFILE).
- #
- VERS_FILE = $(NAME)_vers.c
- VERS_OFILE = $(NAME)_vers.o
-
- $(VERS_OFILE): $(VERS_FILE)
-
- $(VERS_FILE):
- @(cname=`$(ECHO) $(NAME) | $(SED) 's/[^0-9A-Za-z]/_/g'`; \
- $(VERS_STRING) -c $(NAME) \
- | $(SED) s/SGS_VERS/$${cname}_VERS_STRING/ \
- | $(SED) s/VERS_NUM/$${cname}_VERS_NUM/ > $(SFILE_DIR)/$(VERS_FILE))
-
-
- # This doesn't work, because it's substituted in line and not evaluated
- # properly.
-
- # CURRENT_PROJECT_VERSION = `$(VERS_STRING) -n $(BURY_STDERR) | $(AWK) -F. '$$3 ~ /^[0-9][0-9]*$$/ && $$2 ~ /^[0-9][0-9]*$$/ && $$1 ~ /^[0-9][0-9]*$$/ {print $$1"."$$2"."$$3; next} $$2 ~ /^[0-9][0-9]*$$/ && $$1 ~ /^[0-9][0-9]*$$/ {print $$1"."$$2; next} $$1 ~ /^[0-9][0-9]*$$/ {print $$1}'`
-
-
-