mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-29 14:27:42 +00:00
38 lines
491 B
Bash
Executable File
38 lines
491 B
Bash
Executable File
#!/bin/zsh
|
|
|
|
if [ "$1" = "" ]; then
|
|
echo 'Name?'
|
|
exit 1
|
|
fi
|
|
|
|
name="${${1%.rb}//-/_}"
|
|
max_num=(test*(.On[1]))
|
|
let next_num=${max_num[1][6,8]}+1
|
|
|
|
new_file="test-${next_num}${name}.rb"
|
|
|
|
cat > "$new_file" <<EOF
|
|
#!/usr/bin/ruby -w
|
|
|
|
# T_${next_num}${name}
|
|
describe "FIXTHIS"
|
|
|
|
setup do
|
|
# FIXTHIS
|
|
end
|
|
|
|
cleanup do
|
|
# FIXTHIS
|
|
end
|
|
|
|
test_merge "data/FIXTHIS"
|
|
test_merge "data/FIXTHIS", :args => "FIXTHIS"
|
|
|
|
test "data/FIXTHIS" do
|
|
# INSERT COMMANDS
|
|
hash_tmp
|
|
end
|
|
EOF
|
|
|
|
echo "New file is $new_file"
|