Skip to content

Commit

Permalink
Packaging: package-extra-components.sh script updated
Browse files Browse the repository at this point in the history
DarkCaster committed Oct 5, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent b92841c commit 9c15a3d
Showing 1 changed file with 4 additions and 27 deletions.
31 changes: 4 additions & 27 deletions Packaging/package-extra-components.sh
Original file line number Diff line number Diff line change
@@ -2,52 +2,29 @@

# package binary components, build by build.sh script

#TODO
echo "TODO: update this script to use with travis-ci"
exit 1
set -e

build="$1"

[[ -z $build ]] && echo "usage: <build id>" && exit 1

curdir="$( cd "$( dirname "$0" )" && pwd )"

function check_error {
if [[ $? != 0 ]]; then
echo "Build ended with error !!!"
cd "$curdir"
exit 1
fi
}

cd "$curdir/Build"
check_error
srcdir="$(cd "$(dirname "$0")" && pwd)"
cd "$srcdir/../Build"

#get source-checksum
source_checksum=`2>/dev/null "commander/commander"`
source_checksum=$("commander/commander" 2>/dev/null || true)
[[ -z $source_checksum ]] && echo "failed to read correct source_checksum from commander!" && exit 1

rm -rf "executor-$build-$source_checksum"
check_error

cp -r "executor" "executor-$build-$source_checksum"
check_error

rm -rf "x11util-$build"
check_error

cp -r "x11util" "x11util-$build"
check_error

[[ ! -d fixups/fakeroot-$build ]] && echo "fakeroot-$build not found. Run \"./build.sh\" script with \"$build\" parameter" && exit 1

rm -rf "fakeroot-$build"
check_error

cp -r "fixups/fakeroot-$build" "fakeroot-$build"
check_error

# TODO: sign archives

tar cf "executor-$build-$source_checksum.tar" "executor-$build-$source_checksum" --owner=0 --group=0
xz -9e "executor-$build-$source_checksum.tar"

0 comments on commit 9c15a3d

Please sign in to comment.