mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-27 16:26:40 +03:00
47 lines
1.3 KiB
Bash
Executable File
47 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set -u
|
|
sudo rm -rf target/debian
|
|
mkdir target/debian
|
|
mkdir -p target/debian/usr/bin target/debian/DEBIAN
|
|
mkdir -p target/debian/usr/share/man/man1
|
|
mkdir -p target/debian/usr/share/doc/hurl
|
|
|
|
cp target/release/{hurl,hurlfmt} target/debian/usr/bin
|
|
cp target/man/{hurl.1.gz,hurlfmt.1.gz} target/debian/usr/share/man/man1
|
|
gzip -9 -n --stdout CHANGELOG.md > target/debian/usr/share/doc/hurl/changelog.Debian.gz
|
|
cat >target/debian/usr/share/doc/hurl/copyright <<END
|
|
Files: *
|
|
Copyright: 2020, Orange
|
|
License: http://www.apache.org/licenses/LICENSE-2.0
|
|
END
|
|
|
|
sudo chown -R root:root target/debian/usr
|
|
|
|
cat <<END >target/debian/DEBIAN/control
|
|
Package: hurl
|
|
Version: $VERSION
|
|
Section: web
|
|
Architecture: amd64
|
|
Priority: optional
|
|
Standards-Version: 3.9.4
|
|
Maintainer: Fabrice Reix <fabrice.reix@orange.com>
|
|
Depends: libc6 (>= 2.17), libcurl4, zlib1g, libxml2
|
|
Description: Run and test HTTP requests
|
|
Hurl is an HTTP client that performs HTTP requests defined in a simple plain
|
|
text format.
|
|
Hurl is very versatile, it enables to chain HTTP requests, capture values
|
|
from HTTP responses and make asserts.
|
|
|
|
END
|
|
dpkg --build target/debian
|
|
|
|
|
|
echo "Check Lintian"
|
|
sudo apt install lintian
|
|
lintian --verbose target/debian.deb
|
|
|
|
mkdir -p target/upload
|
|
cp target/debian.deb "target/upload/hurl_${VERSION}_amd64.deb"
|
|
|