]> saetta.ns0.it Git - msys2/commitdiff
Aggiunti i file per l'autobuild msys2 in wine.
authorAndrea Zagli <azagli@libero.it>
Fri, 12 Aug 2016 09:22:49 +0000 (11:22 +0200)
committerAndrea Zagli <azagli@libero.it>
Fri, 12 Aug 2016 09:22:49 +0000 (11:22 +0200)
tools/autobuilder/build_pkgbuild [new file with mode: 0644]
tools/autobuilder/copy_to_repo.sh [new file with mode: 0644]

diff --git a/tools/autobuilder/build_pkgbuild b/tools/autobuilder/build_pkgbuild
new file mode 100644 (file)
index 0000000..8cb399d
--- /dev/null
@@ -0,0 +1,4 @@
+#!/usr/bin/bash
+/usr/bin/pacman -Syu --noconfirm
+cd $1
+/usr/bin/makepkg-mingw -sLf --noconfirm
diff --git a/tools/autobuilder/copy_to_repo.sh b/tools/autobuilder/copy_to_repo.sh
new file mode 100644 (file)
index 0000000..5511239
--- /dev/null
@@ -0,0 +1,18 @@
+#!/usr/bin/bash
+
+if [ ! -e PKGBUILD ]; then exit 0; fi
+
+_realname=`cat PKGBUILD | grep _realname=`
+_pkgver=`cat PKGBUILD | grep pkgver=`
+_pkgrel=`cat PKGBUILD | grep pkgrel=`
+
+realname=${_realname:10}
+pkgver=${_pkgver:7}
+pkgrel=${_pkgrel:7}
+
+echo $realname
+echo $pkgver
+echo $pkgrel
+
+ls -l "mingw-w64-i686-"$realname"-"$pkgver"-"$pkgrel"-any.pkg.tar.xz"
+ls -l "mingw-w64-x86_64-"$realname"-"$pkgver"-"$pkgrel"-any.pkg.tar.xz"