mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
04063d664b
* fix bin folder and workflows as far its possible cleanup of dockerfile changed paths of scripts add lock file fix working directory for workflows fix windows bin fix travis (is travis used anyway?) fix package refs remove pnpm-lock file in root as these conflicts with the docker volume setup optimize comments use install again refactor prod image call to run fix --workspace can only be used inside a workspace correct comment try fix pipeline try fix pipeline for upgrade-from-latest-release install all deps smaller adjustments save update dockerfile remove workspace command fix run test command start repair latest release workflow start repair latest release workflow start repair latest release workflow further repairs * remove test plugin from docker compose
39 lines
1.1 KiB
Bash
Executable file
39 lines
1.1 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
newline='
|
|
'
|
|
|
|
pecho () { printf %s\\n "$*"; }
|
|
log () { pecho "$@"; }
|
|
error () { log "ERROR: $@" >&2; }
|
|
fatal () { error "$@"; exit 1; }
|
|
|
|
mydir=$(cd "${0%/*}" && pwd -P) || exit 1
|
|
cd "${mydir}/../.."
|
|
pdir=$(cd .. && pwd -P) || exit 1
|
|
|
|
plugins=$("${mydir}/listOfficialPlugins") || exit 1
|
|
for d in ${plugins}; do
|
|
log "============================================================"
|
|
log "${d}"
|
|
log "============================================================"
|
|
fd=${pdir}/${d}
|
|
repo=git@github.com:ether/${plugin}.git
|
|
[ -d "${fd}" ] || {
|
|
log "Cloning ${repo} to ${fd}..."
|
|
(cd "${pdir}" && git clone "${repo}" "${d}") || exit 1
|
|
} || exit 1
|
|
log "Fetching latest commits..."
|
|
(cd "${fd}" && git pull --ff-only) || exit 1
|
|
log "Getting plugin name..."
|
|
pn=$(cd "${fd}" && npx -c 'printf %s\\n "${npm_package_name}"') || exit 1
|
|
[ -n "${pn}" ] || fatal "Unable to determine plugin name for ${d}"
|
|
md=node_modules/${pn}
|
|
[ -d "${md}" ] || {
|
|
log "Installing plugin to ${md}..."
|
|
ln -s ../../"${d}" "${md}"
|
|
} || exit 1
|
|
[ "${md}" -ef "${fd}" ] || fatal "${md} is not a symlink to ${fd}"
|
|
done
|