From 6ce16ca75d2ffd4d4e25e6e74943827d59d68fc0 Mon Sep 17 00:00:00 2001 From: milisbir Date: Mon, 23 Jul 2018 06:53:10 +0300 Subject: [PATCH] mpsd-githash --- bin/mpsd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/mpsd b/bin/mpsd index c6c0d429c..fe80b1749 100755 --- a/bin/mpsd +++ b/bin/mpsd @@ -653,7 +653,7 @@ add_meta_files() { } add_meta_to_archive() { - local NAME TAR SIZE_I DESC URL PACK MAINT ARCH GRUP + local NAME TAR SIZE_I DESC URL PACK MAINT ARCH GRUP GITHASH NAME="`get_package_name $1`" ARCH="`get_package_arch $1`" @@ -703,6 +703,8 @@ add_meta_to_archive() { echo "B$PKGMK_BUILDVER" >> .META echo "a$ARCH" >> .META echo "G$GRUP" >> .META + GITHASH=$(cat ${GITREPO}/.git/refs/heads/master) + echo "H${GITHASH}" >> .META bsdtar -tf $PAKETLEME_DIZIN/$1 > .MTREE @@ -1471,6 +1473,7 @@ trap "interrupted" SIGHUP SIGINT SIGQUIT SIGTERM export LC_ALL=POSIX DERLEME_AYARDOSYASI="/etc/mpsd.conf" +GITREPO="/sources/milis.git" ANADERLEME_AYARDOSYASI="/sources/milis.git/ayarlar/mpsd.conf" readonly PKGMK_VERSION="1.0" readonly PKGMK_COMMAND="$0"