mpsd-githash

This commit is contained in:
milisbir 2018-07-23 06:53:10 +03:00
parent 6cfe6ee408
commit 6ce16ca75d
1 changed files with 4 additions and 1 deletions

View File

@ -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"