mirror of
https://github.com/lbonn/rofi
synced 2024-12-21 01:33:11 +00:00
2140c9dffb
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
21 lines
690 B
Bash
Executable file
21 lines
690 B
Bash
Executable file
#! /bin/sh
|
|
|
|
NAME=`mesonintrospect ${MESON_BUILD_ROOT} --projectinfo | tr ',[' '\n\n' | sed -n 1,/subprojects/p | grep name | cut -d'"' -f4`
|
|
VERSION=`mesonintrospect ${MESON_BUILD_ROOT} --projectinfo | tr ',[' '\n\n' | sed -n 1,/subprojects/p | grep version | cut -d'"' -f4`
|
|
PREFIX=${NAME}-${VERSION}
|
|
TAR=${MESON_BUILD_ROOT}/${PREFIX}.tar
|
|
|
|
rm -f ${TAR} ${TAR}.xz
|
|
git archive --prefix=${PREFIX}/ --format=tar HEAD > ${TAR}
|
|
(
|
|
git submodule | \
|
|
while read commit path ref; do
|
|
(
|
|
cd ${path}
|
|
git archive --prefix=${PREFIX}/${path}/ --format=tar ${commit} > tmp.tar
|
|
tar -Af ${TAR} tmp.tar
|
|
rm -f tmp.tar
|
|
)
|
|
done
|
|
)
|
|
xz ${TAR}
|