mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-28 11:04:12 +01:00
20 lines
320 B
Plaintext
20 lines
320 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
os="$1"
|
||
|
codename="$2"
|
||
|
|
||
|
detect_package_format() {
|
||
|
package_format=rpm
|
||
|
if ls builder/dockerfile*"$os"* | grep -q .deb.build; then
|
||
|
package_format=deb
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
cd "$(dirname "$0")/.."
|
||
|
|
||
|
detect_package_format
|
||
|
builder/build-tarball "$os" "$codename"
|
||
|
builder/build-${package_format} "$os" "$codename"
|