summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2013-06-25 18:29:07 +0200
committerPhilipp Hagemeister <[email protected]>2013-06-25 18:29:07 +0200
commit110c975154feee845039bcb9bfa4bca565362829 (patch)
treeaad198ef0b599a025482ba1bf76bac5541f6882a
parent8005b349a40e57b4abc456b349789391af94b4ae (diff)
downloadyoutube-dl-110c975154feee845039bcb9bfa4bca565362829.tar.gz
youtube-dl-110c975154feee845039bcb9bfa4bca565362829.zip
Script to update the latest/ directory (#925)
-rwxr-xr-xupdate_latest.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/update_latest.sh b/update_latest.sh
new file mode 100755
index 000000000..66a3e9999
--- /dev/null
+++ b/update_latest.sh
@@ -0,0 +1,9 @@
+#/bins/sh
+set -e
+
+version="$1"
+
+ln -sf ../downloads/$version latest/directory
+for f in $(ls "downloads/$version/"); do \
+ ln -sf "../downloads/$version/$f" latest/$(echo $f | sed -e "s@-$version@@")
+done