Added a way to include files in a source package that can be used during the compilation process (i.e patch files)

This commit is contained in:
2024-04-16 21:04:36 +03:00
parent 472d21a618
commit b568d4db32
9 changed files with 192 additions and 139 deletions
Binary file not shown.
@@ -7,7 +7,7 @@ fi
output=$1
if [[ ! "$output" =~ ^[a-zA-Z0-9_-]{1,}$ ]]; then
if [[ ! "$output" =~ ^[a-z.A-Z0-9_-]{1,}$ ]]; then
echo "Invalid output name! The name must only contain letters, numbers, hyphens or underscores!"
exit 1
fi
@@ -22,6 +22,9 @@ else
if [ -f source.sh ]; then
type="source"
echo "source.sh file found"
if [ -d source-files ]; then
echo "source-files/ directory found"
fi
else
echo "files/ directory or source.sh file not found in $PWD"
exit 1
@@ -35,10 +38,14 @@ else
exit 1
fi
echo "Creating $type package as $output.bpm"
echo "Creating $type package as $output"
if [[ "$type" == "binary" ]]; then
tar -czf "$output".bpm files/ pkg.info
tar -czf "$output" files/ pkg.info
else
tar -czf "$output".bpm source.sh pkg.info
if [ -d source-files ]; then
tar -czf "$output" source.sh source-files/ pkg.info
else
tar -czf "$output" source.sh pkg.info
fi
fi
+1 -1
View File
@@ -1,6 +1,6 @@
name: bpm-utils
description: Utilities to create BPM packages
version: 1.2.0
version: 1.3.0
url: https://gitlab.com/bubble-package-manager/bpm/
license: GPL3
architecture: x86_64