#!/bin/tcsh # scripts for making mrss-type file, suitable for mplayer 6.1 and some others # earlier than 6.12 # this is the only format it understands and documentation is already lost if ( ! $#argv ) (echo FUCKUP;exit 1) echo '' echo '' echo '' foreach i ( $argv ) set base=`basename "$i"` set thm=`echo "$base" | sed -Ee 's/\.mp4/.jpeg/' | sed -Ee 's/^s-//'| tr A-Z a-z` echo ' ' echo ' ' "$base" '' echo ' '"$i"'' if ( -f $thm ) \ echo ' '"/video/$thm"'' echo ' ' # - for multiquality version echo ' ' end echo '' echo ''