1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00
irssi/utils/syncscripts.sh

40 lines
703 B
Bash
Raw Normal View History

2017-10-24 16:22:39 -04:00
#!/bin/sh -e
# Run this script to sync dual lived scripts from scripts.irssi.org to scripts/
PKG_NAME="Irssi"
scriptbase=https://scripts.irssi.org/scripts
srcdir=`dirname "$0"`
test -z "$srcdir" && srcdir=.
2017-10-25 10:22:57 -04:00
srcdir="$srcdir"/..
2017-10-24 16:22:39 -04:00
2022-02-18 14:50:37 -05:00
if test ! -f "$srcdir"/irssi.conf; then
2017-10-24 16:22:39 -04:00
echo -n "**Error**: Directory \`$srcdir' does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
fi
dl2='curl -Ssf'
dl_it() {
echo "$1"
$dl2 -o "$srcdir/scripts/$1" "$scriptbase/$1"
}
for script in \
autoop.pl \
autorejoin.pl \
buf.pl \
dns.pl \
kills.pl \
mail.pl \
mlock.pl \
quitmsg.pl \
scriptassist.pl \
usercount.pl \
;
do
dl_it $script
done