mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-13 18:06:01 +00:00
223fa4ca01
Add the libaries and update script so additional configure parameters can be passed. Also enable backtrace and libudev so it's closer to the defaults. Leap 15.3 properly builds only with libsodium, 15.4 with libgcrypt and libsodium. Libkcapi is old on both. Signed-off-by: David Sterba <dsterba@suse.com>
33 lines
873 B
Bash
Executable File
33 lines
873 B
Bash
Executable File
#!/bin/sh
|
|
# Usage: $0 [branch] [configure options]
|
|
# Create source tarball from HEAD or given branch and build it in openSUSE Leap 15.3 CI
|
|
# environment. Configure options follow branch name that can be empty.
|
|
|
|
HERE=`pwd`
|
|
if [ -f "configure.ac" ]; then
|
|
SOURCEDIR=`pwd`
|
|
elif [ -f "../configure.ac" ]; then
|
|
cd ..
|
|
SOURCEDIR=`pwd`
|
|
else
|
|
echo "ERROR: cannot determine source directory from `pwd`"
|
|
exit 1
|
|
fi
|
|
|
|
CIIMAGEDIR=ci/images/ci-openSUSE-Leap-15.3-x86_64
|
|
BRANCH=${1:-HEAD}
|
|
shift
|
|
HASH=$(git log -1 --format='%h %s' "$BRANCH")
|
|
|
|
echo "CI: Generate archive from $BRANCH ($HASH)"
|
|
git archive --prefix=btrfs-progs-devel/ -o devel.tar "$BRANCH"
|
|
echo "$BRANCH $HASH" > GITCOMMIT
|
|
tar uvf devel.tar GITCOMMIT
|
|
#rm GITCOMMIT
|
|
gzip --force --best devel.tar
|
|
|
|
cd "$CIIMAGEDIR"
|
|
cp "$SOURCEDIR/devel.tar.gz" .
|
|
./docker-build
|
|
./docker-run -- ./test-build devel --disable-documentation "$@"
|