mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireSync.git
synced 2026-05-30 23:44:03 +08:00
* feat: dead simple and dead slow svn checkout scripts for plugins/themes * feat: add scripts to check for updated plugins/themes * tweak: split slugs on commas or whitespace instead of just commas * tweak: replace --plugins and --themes options with --slugs and --slugs-from * tweak: add logging config to Caddyfile * feat: push-sync and update-sync commands * build: bump composer versions
16 lines
373 B
Bash
Executable file
16 lines
373 B
Bash
Executable file
#!/bin/bash
|
|
|
|
. $(dirname $0)/prelude.bash
|
|
|
|
date=$1
|
|
[[ -n $date ]] || die "usage: $0 <date>"
|
|
|
|
ymd=$(php -r "echo date('Y-m-d', strtotime('$date'));")
|
|
tmp=${TMPDIR:-/tmp}
|
|
|
|
checkout=$(mktemp -d $tmp/plugins-svn.XXXXXXXX)
|
|
trap "rm -rf $checkout" EXIT
|
|
|
|
RUN cd $checkout
|
|
RUN svn co https://plugins.svn.wordpress.org --depth empty > /dev/null
|
|
RUN $base/bin/svn-changed-slugs $ymd
|