Build system: Add option to pack the extension

This commit is contained in:
Romain Vigier
2022-05-24 23:42:06 +02:00
parent e9de843b08
commit c1162a5403
6 changed files with 44 additions and 6 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
# SPDX-FileCopyrightText: 2022 Romain Vigier <contact AT romainvigier.fr>
# SPDX-License-Identifier: GPL-3.0-or-later
ZIP_EXE=$1
UUID=$2
PACK_DIR=$3
# Remove previous archive
rm -f $PACK_DIR/$UUID.zip
# Create the destination directory
mkdir -p $PACK_DIR
# Archive extension
cd $MESON_BUILD_ROOT/$UUID
$ZIP_EXE -r $PACK_DIR/$UUID.zip *
# Remove unarchived files
rm -rf $MESON_BUILD_ROOT/$UUID