mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 12:27:21 +00:00
25 lines
304 B
Bash
Executable File
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
|