]> Nishi Git Mirror - dataworks.git/commitdiff
increment
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Fri, 7 Jun 2024 09:31:35 +0000 (09:31 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Fri, 7 Jun 2024 09:31:35 +0000 (09:31 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@172 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

PKGBUILD
common.mk
increment-PKGBUILD [new file with mode: 0644]

index 14ec0a642c563f7fa1b319d942ade4884b69e9d7..aa772332bb689d646d02bfd10d3a6ae8b3e2d6cf 100644 (file)
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@ pkgver='0.1.0'
 pkgdesc='Database System'
 arch=('i686' 'x86_64')
 license=('BSD')
-pkgrel='1'
+pkgrel='3'
 makedepends=('byacc')
 source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision=170')
 sha256sums=('SKIP')
index 9d6f9b8ae1304352a211d76c2c2ad02f214ec559..28a3112e0c9e12b4af0439c61e28f00d735a38a2 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -127,7 +127,7 @@ get-version:
        echo "pkgdesc='Database System'" >> $@
        echo "arch=('i686' 'x86_64')" >> $@
        echo "license=('BSD')" >> $@
-       echo "pkgrel='1'" >> $@
+       echo "pkgrel='`cat increment-PKGBUILD`'" >> $@
        echo "makedepends=('byacc')" >> $@
        echo "source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision="`svn info | grep "Revision" | grep -Eo "[0-9]+"`"')" >> $@
        echo "sha256sums=('SKIP')" >> $@
@@ -150,5 +150,4 @@ get-version:
        echo "  ln -sf dataworks_server \$$pkgdir/usr/bin/dwserv" >> $@
        echo "  ln -sf dataworks \$$pkgdir/usr/bin/dw" >> $@
        echo "}" >> $@
-
-PKGBUILD: ./PKGBUILD
+       expr `cat increment-PKGBUILD` + 1 > increment-PKGBUILD
diff --git a/increment-PKGBUILD b/increment-PKGBUILD
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4