From: nishi Date: Fri, 7 Jun 2024 09:29:26 +0000 (+0000) Subject: updated stuff X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=3f685cba58851146a01442ff2d472a7b2d5d67fe;p=dataworks.git updated stuff git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@171 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/PKGBUILD b/PKGBUILD index dde6f99..14ec0a6 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,7 +7,7 @@ arch=('i686' 'x86_64') license=('BSD') pkgrel='1' makedepends=('byacc') -source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision=169') +source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision=170') sha256sums=('SKIP') build() { diff --git a/common-decl.mk b/common-decl.mk index 3b5139f..b9e0d23 100644 --- a/common-decl.mk +++ b/common-decl.mk @@ -23,5 +23,6 @@ PLATFORM_P = `uname -p | sed -E "s/[ \\(\\)]/-/g"` LINK_LIB = ../Library/$(STATICLIB_PREFIX)dataworks$(STATICLIB_SUFFIX) SERVER = ./Server SERVER_MODULE = tcpip.o +VERSION = `cat Library/dataworks.c | grep " dataworks_version " | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9]+)?'` COMPILE_FLAGS = CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS)" LIB_PREFIX="$(LIB_PREFIX)" LIB_SUFFIX="$(LIB_SUFFIX)" EXEC_SUFFIX="$(EXEC_SUFFIX)" PLATFORM_M="$(PLATFORM_M)" PLATFORM_P="$(PLATFORM_P)" STATICLIB_PREFIX="$(STATICLIB_PREFIX)" STATICLIB_SUFFIX="$(STATICLIB_SUFFIX)" AR="$(AR)" RANLIB="$(RANLIB)" SHCC="$(SHCC)" LINK_LIB="$(LINK_LIB)" AR_ARGS="$(AR_ARGS)" WINDRES="$(WINDRES)" YACC="$(YACC)" LEX="$(LEX)" LFLAGS="$(LFLAGS)" YFLAGS="$(YFLAGS)" SERVER_MODULE="$(SERVER_MODULE)" diff --git a/common.mk b/common.mk index 4f59ab8..9d6f9b8 100644 --- a/common.mk +++ b/common.mk @@ -1,6 +1,6 @@ # $Id$ -.PHONY: all no-doc replace format clean ./Library ./Client ./Document ./Grammar archive archive-prepare archive-cleanup archive-targz archive-zip dosbox prepare-dosbox dosbox-x cleanup-dosbox +.PHONY: all no-doc replace format clean ./Library ./Client ./Document ./Grammar ./PKGBUILD PKGBUILD archive archive-prepare archive-cleanup archive-targz archive-zip dosbox prepare-dosbox dosbox-x cleanup-dosbox get-version all: ./Grammar ./Library ./Client $(SERVER) ./Document @@ -116,11 +116,14 @@ dosbox-x: prepare-dosbox cleanup-dosbox: rm -f op.txt dosbox.conf DW.* DWSERV.* dw.* dwserv.* dosbox.core +get-version: + echo $(VERSION) + ./PKGBUILD: echo "# \$$Id\$$" > $@ echo >> $@ echo "pkgname='dataworks'" >> $@ - echo "pkgver='"`cat Library/dataworks.c | grep " dataworks_version " | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9]+)?'`"'" >> $@ + echo "pkgver='"$(VERSION)"'" >> $@ echo "pkgdesc='Database System'" >> $@ echo "arch=('i686' 'x86_64')" >> $@ echo "license=('BSD')" >> $@ @@ -147,3 +150,5 @@ cleanup-dosbox: echo " ln -sf dataworks_server \$$pkgdir/usr/bin/dwserv" >> $@ echo " ln -sf dataworks \$$pkgdir/usr/bin/dw" >> $@ echo "}" >> $@ + +PKGBUILD: ./PKGBUILD