mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
add a script to sync scripts as well
This commit is contained in:
parent
245bd5579c
commit
9a3c0bce48
38
syncscripts.sh
Executable file
38
syncscripts.sh
Executable file
@ -0,0 +1,38 @@
|
|||||||
|
#!/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=.
|
||||||
|
|
||||||
|
if test ! -f "$srcdir"/configure.ac; then
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user