Skip to content
Snippets Groups Projects
Commit 8b988ee6 authored by akiraohgaki's avatar akiraohgaki
Browse files

Update package script

parent f905d158
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#!/bin/sh
PKGNAME='ocs-manager'
......@@ -10,7 +10,7 @@ PROJDIR="$(cd "$(dirname "${0}")/../" && pwd)"
BUILDDIR="${PROJDIR}/build_${PKGNAME}"
ci_appimage() { # docker-image: ubuntu:14.04
appimage() { # docker-image: ubuntu:14.04
apt update -qq
apt -y install curl git
#apt -y install build-essential qt5-default libqt5websockets5-dev
......@@ -46,13 +46,13 @@ build_appimage() {
}
export_srcarchive() {
if [[ "${1}" ]]; then
if [ "${1}" ]; then
$(cd "${PROJDIR}" && git archive --prefix="${PKGNAME}/" --output="${1}" HEAD)
fi
}
transfer_file() {
if [[ -f "${1}" ]]; then
if [ -f "${1}" ]; then
filename="$(basename "${1}")"
transferlog="${PROJDIR}/transfer.log"
echo "Uploading ${filename}" >> "${transferlog}"
......@@ -61,6 +61,6 @@ transfer_file() {
fi
}
if [[ "${1}" = 'ci_'* || "${1}" = 'build_'* ]]; then
if [ "${1}" ]; then
${1}
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment