Update of /cvsroot/pure-data/packages/linux_make In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19356
Modified Files: 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.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** Makefile 12 Jul 2007 03:59:53 -0000 1.33 --- Makefile 12 Jul 2007 14:27:37 -0000 1.34 *************** *** 70,73 **** --- 70,75 ---- PACKAGE_NAME = Pd-$(PD_VERSION)
+ DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH) + DEB_PD_VERSION := $(shell echo $(PD_VERSION) | sed 's|(.*)-extended-(.*)|\1cvs\2-1|') deb: $(bindir) # GNOME menu support *************** *** 98,101 **** --- 100,108 ---- 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