[PD-cvs] packages/linux_make Makefile,1.21.2.3,1.21.2.4

Hans-Christoph Steiner eighthave at users.sourceforge.net
Thu Jul 12 16:45:02 CEST 2007


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

Modified Files:
      Tag: branch-v0-39-2-extended
	Makefile 
Log Message:
automatically set the package version and architecture

Index: Makefile
===================================================================
RCS file: /cvsroot/pure-data/packages/linux_make/Makefile,v
retrieving revision 1.21.2.3
retrieving revision 1.21.2.4
diff -C2 -d -r1.21.2.3 -r1.21.2.4
*** Makefile	12 Jul 2007 04:07:21 -0000	1.21.2.3
--- Makefile	12 Jul 2007 14:45:00 -0000	1.21.2.4
***************
*** 68,71 ****
--- 68,73 ----
  PACKAGE_NAME = Pd-$(PD_VERSION)
  
+ DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+ DEB_PD_VERSION := $(shell echo $(PD_VERSION) | sed 's|\(.*\)-extended-\(.*\)|\1\2-1|')
  deb: $(bindir)
  # GNOME menu support
***************
*** 97,100 ****
--- 99,107 ----
  	install -p $(scripts_src)/pd-diff $(bindir)
  	install -p $(scripts_src)/config-switcher.sh $(bindir)
+ # set build architecture and version for the package
+ 	sed -i 's|^Version:.*|Version: $(DEB_PD_VERSION)|' \
+ 		$(packages_src)/linux_make/debian/control
+ 	sed -i 's|^Architecture:.*|Architecture: $(DEB_BUILD_ARCH)|' \
+ 		$(packages_src)/linux_make/debian/control
  # debian packaging
  	test -d $(DESTDIR)/DEBIAN || mkdir -p $(DESTDIR)/DEBIAN





More information about the Pd-cvs mailing list