]> Nishi Git Mirror - dataworks.git/commitdiff
add package-related stuff
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Mon, 17 Jun 2024 00:07:01 +0000 (00:07 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Mon, 17 Jun 2024 00:07:01 +0000 (00:07 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@316 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Makefiles/common-decl.mk
Makefiles/common.mk
Makefiles/deb.mk [new file with mode: 0644]
Makefiles/dosbox.mk
Makefiles/package.mk
Makefiles/pkgbuild.mk [new file with mode: 0644]

index f045ba87501a11d6f282faedc0428c5c860d1596..f1429674a5145610c374f62b745a2c591b0813b9 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: common-decl.mk 302 2024-06-14 12:23:13Z nishi $
+# $Id$
 
 CC = cc
 SHCC = cc
index 4b38faeb6675f778c2c1d10cb179a54217cc9e11..b66595dc82c1b895d02591747c89b4582a83f162 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: common.mk 312 2024-06-15 02:13:12Z nishi $
+# $Id$
 
 .PHONY: all no-doc replace format clean ./Library ./Client ./Document ./Server ./Grammar ./RemoteClient ./Installer ./Tool get-version thanks-banner dos-installer
 
diff --git a/Makefiles/deb.mk b/Makefiles/deb.mk
new file mode 100644 (file)
index 0000000..3bf1eb0
--- /dev/null
@@ -0,0 +1,3 @@
+# $Id$
+
+.PHONY: ./Package/dataworks.deb
index 2f669baba24bad6628bf7024a8eeda209f015405..2d5cd49ad6a66fa89da46ca95aef6796ddc487b9 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: common.mk 312 2024-06-15 02:13:12Z nishi $
+# $Id$
 
 .PHONY: dosbox prepare-dosbox dosbox-x cleanup-dosbox
 
index de40e495ea55a5e4e5a8ab0b65a18f0c69ab0efa..187d2cd9f66733cc277c081bcc5662c80ba046e6 100644 (file)
@@ -1,37 +1,4 @@
-# $Id: common.mk 312 2024-06-15 02:13:12Z nishi $
+# $Id$
 
-.PHONY: ./Package/PKGBUILD
-
-./Package/PKGBUILD:
-       echo "# \$$Id\$$" > $@
-       echo >> $@
-       echo "pkgname='dataworks'" >> $@
-       echo "pkgver='"$(VERSION)"'" >> $@
-       echo "pkgdesc='Database System'" >> $@
-       echo "arch=('i686' 'x86_64')" >> $@
-       echo "license=('BSD')" >> $@
-       echo "pkgrel='`cat ./Package/increment-PKGBUILD`'" >> $@
-       echo "makedepends=('byacc')" >> $@
-       echo "source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision="`svn info -r HEAD | grep "Revision" | grep -Eo "[0-9]+" | xargs expr 1 +`"')" >> $@
-       echo "sha256sums=('SKIP')" >> $@
-       echo >> $@
-       echo "build() {" >> $@
-       echo "  cd dataworks" >> $@
-       echo "  make clean" >> $@
-       echo "  make no-doc YACC=byacc" >> $@
-       echo "}" >> $@
-       echo >> $@
-       echo "package() {" >> $@
-       echo "  cd dataworks" >> $@
-       echo "  mkdir -p \$$pkgdir/usr/include" >> $@
-       echo "  mkdir -p \$$pkgdir/usr/lib" >> $@
-       echo "  mkdir -p \$$pkgdir/usr/bin" >> $@
-       echo "  cp -rf Library/*.h \$$pkgdir/usr/include/" >> $@
-       echo "  cp -rf Library/*.a \$$pkgdir/usr/lib/" >> $@
-       echo "  cp -rf Library/*.so \$$pkgdir/usr/lib/" >> $@
-       echo "  cp -rf Server/dataworks_server \$$pkgdir/usr/bin/" >> $@
-       echo "  cp -rf Client/dataworks \$$pkgdir/usr/bin/" >> $@
-       echo "  ln -sf dataworks_server \$$pkgdir/usr/bin/dwserv" >> $@
-       echo "  ln -sf dataworks \$$pkgdir/usr/bin/dw" >> $@
-       echo "}" >> $@
-       expr `cat ./Package/increment-PKGBUILD` + 1 > ./Package/increment-PKGBUILD
+include Makefiles/pkgbuild.mk
+include Makefiles/deb.mk
diff --git a/Makefiles/pkgbuild.mk b/Makefiles/pkgbuild.mk
new file mode 100644 (file)
index 0000000..920db32
--- /dev/null
@@ -0,0 +1,37 @@
+# $Id$
+
+.PHONY: ./Package/PKGBUILD
+
+./Package/PKGBUILD:
+       echo "# \$$Id\$$" > $@
+       echo >> $@
+       echo "pkgname='dataworks'" >> $@
+       echo "pkgver='"$(VERSION)"'" >> $@
+       echo "pkgdesc='Database System'" >> $@
+       echo "arch=('i686' 'x86_64')" >> $@
+       echo "license=('BSD')" >> $@
+       echo "pkgrel='`cat ./Package/increment-PKGBUILD`'" >> $@
+       echo "makedepends=('byacc')" >> $@
+       echo "source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision="`svn info -r HEAD | grep "Revision" | grep -Eo "[0-9]+" | xargs expr 1 +`"')" >> $@
+       echo "sha256sums=('SKIP')" >> $@
+       echo >> $@
+       echo "build() {" >> $@
+       echo "  cd dataworks" >> $@
+       echo "  make clean" >> $@
+       echo "  make no-doc YACC=byacc" >> $@
+       echo "}" >> $@
+       echo >> $@
+       echo "package() {" >> $@
+       echo "  cd dataworks" >> $@
+       echo "  mkdir -p \$$pkgdir/usr/include" >> $@
+       echo "  mkdir -p \$$pkgdir/usr/lib" >> $@
+       echo "  mkdir -p \$$pkgdir/usr/bin" >> $@
+       echo "  cp -rf Library/*.h \$$pkgdir/usr/include/" >> $@
+       echo "  cp -rf Library/*.a \$$pkgdir/usr/lib/" >> $@
+       echo "  cp -rf Library/*.so \$$pkgdir/usr/lib/" >> $@
+       echo "  cp -rf Server/dataworks_server \$$pkgdir/usr/bin/" >> $@
+       echo "  cp -rf Client/dataworks \$$pkgdir/usr/bin/" >> $@
+       echo "  ln -sf dataworks_server \$$pkgdir/usr/bin/dwserv" >> $@
+       echo "  ln -sf dataworks \$$pkgdir/usr/bin/dw" >> $@
+       echo "}" >> $@
+       expr `cat ./Package/increment-PKGBUILD` + 1 > ./Package/increment-PKGBUILD