mkvtoolnix/tests/new_test
2004-08-19 19:37:07 +00:00

25 lines
304 B
Bash
Executable File

#!/bin/sh
if [ "$1" == "" ]; then
echo 'Name?'
exit 1
fi
N=`echo $1 | sed -e 's/\.rb//'`
cat > test-$N.rb <<EOF
#!/usr/bin/ruby -w
class T_${1} < Test
def initialize
@description = "INSERT DESCRIPTION"
end
def run
# INSERT COMMANDS
return nil
end
end
EOF
chmod +x test-$N.rb