[PD-cvs] packages Makefile, 1.47, 1.48 Makefile.buildlayout, 1.28, 1.29

Hans-Christoph Steiner eighthave at users.sourceforge.net
Tue Oct 17 06:35:16 CEST 2006


Update of /cvsroot/pure-data/packages
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10575

Modified Files:
	Makefile Makefile.buildlayout 
Log Message:
switched test version number to use the current date

Index: Makefile
===================================================================
RCS file: /cvsroot/pure-data/packages/Makefile,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** Makefile	6 Oct 2006 05:12:01 -0000	1.47
--- Makefile	17 Oct 2006 04:35:14 -0000	1.48
***************
*** 780,783 ****
--- 780,798 ----
  
  
+ set_version:
+ # change Pd's version number to reflect the extended build
+ # this needs the complete_version_defines patch to work
+ 	cd $(pd_src)/src/ && \
+ 		sed 's|^\(#define PD_TEST_VERSION "\).*"|\1$(PACKAGE_VERSION)"|' m_pd.h > \
+ 			m_pd.h.tmp && mv m_pd.h.tmp m_pd.h
+ 
+ unset_version:
+ # change the version number back to the original 
+ # this needs the complete_version_defines patch to work
+ 	cd $(pd_src)/src && \
+ 		sed 's|^\(#define PD_TEST_VERSION ".*\)$(PACKAGE_VERSION_PREFIX).*"|\1"|' \
+ 			m_pd.h > m_pd.h.tmp && \
+ 		mv m_pd.h.tmp m_pd.h
+ 
  
  patch_pd:
***************
*** 796,804 ****
  endif
  	-rm -f -- $(pd_src)/src/configure  $(pd_src)/src/makefile
- # change Pd's version number to reflect the extended build
- # this needs the complete_version_defines patch to work
- 	cd $(pd_src)/src/ && \
- 		sed 's|^\(#define PD_TEST_VERSION "\).*"|\1$(PACKAGE_VERSION)"|' m_pd.h > \
- 			m_pd.h.tmp && mv m_pd.h.tmp m_pd.h
  	@echo " "
  	@echo "patching completed."
--- 811,814 ----
***************
*** 806,815 ****
  
  unpatch_pd:
- # change the version number back to the original 
- # this needs the complete_version_defines patch to work
- 	cd $(pd_src)/src && \
- 		sed 's|^\(#define PD_TEST_VERSION ".*\)$(PACKAGE_VERSION)"|\1"|' \
- 			m_pd.h > m_pd.h.tmp && \
- 		mv m_pd.h.tmp m_pd.h
  # apply all platform-specific patches
  	for patch in $(shell ls -1r $(CWD)/patches/$(OS_NAME)/*.patch); do \
--- 816,819 ----
***************
*** 826,829 ****
--- 830,840 ----
  	@echo "unpatching completed."
  
+ 
+ patch: patch_pd set_version
+ 
+ unpatch: unset_version unpatch_pd
+ 
+ 
+ 
  patch_pd_devel:
  	@echo pd_src $(pd_src)

Index: Makefile.buildlayout
===================================================================
RCS file: /cvsroot/pure-data/packages/Makefile.buildlayout,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** Makefile.buildlayout	28 Sep 2006 03:52:47 -0000	1.28
--- Makefile.buildlayout	17 Oct 2006 04:35:14 -0000	1.29
***************
*** 167,172 ****
  endif
  
  # release version for this distro
! PACKAGE_VERSION = extended-test5
  PACKAGE_NAME = Pd-$(PD_VERSION)
  
--- 167,175 ----
  endif
  
+ VERSION_DATE := $(shell date +%Y-%m-%d)
+ 
  # release version for this distro
! PACKAGE_VERSION_PREFIX = extended
! PACKAGE_VERSION = $(PACKAGE_VERSION_PREFIX)-$(VERSION_DATE)
  PACKAGE_NAME = Pd-$(PD_VERSION)
  





More information about the Pd-cvs mailing list