mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 12:27:21 +00:00
24 lines
277 B
Bash
Executable File
24 lines
277 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 description
|
|
return "INSERT DESCRIPTION"
|
|
end
|
|
|
|
def run
|
|
# INSERT COMMANDS
|
|
return nil
|
|
end
|
|
end
|
|
|
|
EOF
|