summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2017-10-24 22:22:39 +0200
committerailin-nemui <ailin-nemui@users.noreply.github.com>2017-10-24 22:22:39 +0200
commit9a3c0bce48d3f172d5638ecb37967528812129b1 (patch)
tree850d7271fa944c8e26d9e3343bcc59b0ab1d28cf
parent245bd5579cc680e8eeba4769da87bccb8a4d0de3 (diff)
downloadirssi-9a3c0bce48d3f172d5638ecb37967528812129b1.zip
add a script to sync scripts as well
-rwxr-xr-xsyncscripts.sh38
1 files changed, 38 insertions, 0 deletions
diff --git a/syncscripts.sh b/syncscripts.sh
new file mode 100755
index 00000000..eee95a5e
--- /dev/null
+++ b/syncscripts.sh
@@ -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