summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-10-27 18:10:51 +0000
committerRodeo <[email protected]>2012-10-27 18:10:51 +0000
commit8b7552139a158d00391d074d4e37d2e7c79961e2 (patch)
tree4aa2a61a73d1d9d6e5cae33f8fcc2239d2e591ad /scripts
parent5ed346b8eba0333f83ade4cea37378e09f5d0eb2 (diff)
CLI, manicure: cosmetics.
Makes it easier to update CLI presets without having to worry about whitespace polluting the diffs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5038 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/manicure.rb50
1 files changed, 26 insertions, 24 deletions
diff --git a/scripts/manicure.rb b/scripts/manicure.rb
index 6b86f0a65..7417a22f9 100755
--- a/scripts/manicure.rb
+++ b/scripts/manicure.rb
@@ -248,7 +248,7 @@ class Display
(depth+1).times do
commandString << "<"
end
- commandString << " " << hash["PresetName"] << "\n\n"
+ commandString << " " << hash["PresetName"] << "\n"
puts commandString
end
@@ -260,7 +260,7 @@ class Display
(depth+1).times do
commandString << ">"
end
- commandString << "\n\n"
+ commandString << "\n"
puts commandString
end
@@ -599,10 +599,6 @@ class Display
# That's it, print to screen now
puts commandString
-
- #puts "*" * @columnWidth
-
- puts "\n"
end
def generateCLIFolderParse( hash, depth ) # Shows the folder for wrappers to parse
@@ -613,7 +609,7 @@ class Display
(depth+1).times do
commandString << "<"
end
- commandString << " " << hash["PresetName"] << "\n\n"
+ commandString << " " << hash["PresetName"] << "\n"
puts commandString
end
@@ -625,7 +621,7 @@ class Display
(depth+1).times do
commandString << ">"
end
- commandString << "\n\n"
+ commandString << "\n"
puts commandString
end
@@ -956,10 +952,6 @@ class Display
# That's it, print to screen now
puts commandString
-
- #puts "*" * @columnWidth
-
- puts "\n"
end
def generateAPIcalls(hash) # Makes a C version of the preset ready for coding into the CLI
@@ -1323,17 +1315,28 @@ class Display
end
#Booleans
- if hash["ChapterMarkers"] == 1 then commandString << "job->chapter_markers = 1;\n " end
- if hash["VideoGrayScale"] == 1 then commandString << "job->grayscale = 1;\n " end
- if hash["VideoTwoPass"] == 1 then commandString << "twoPass = 1;\n " end
- if hash["VideoTurboTwoPass"] == 1 then commandString << "turbo_opts_enabled = 1;\n" end
- commandString << "\n"
- commandString << "}"
-
+ if hash["ChapterMarkers"] == 1
+ commandString << "job->chapter_markers = 1;\n "
+ end
+
+ if hash["VideoGrayScale"] == 1
+ commandString << "job->grayscale = 1;\n "
+ end
+
+ if hash["VideoTwoPass"] == 1
+ commandString << "twoPass = 1;\n "
+ end
+
+ if hash["VideoTurboTwoPass"] == 1
+ commandString << "turbo_opts_enabled = 1;\n "
+ end
+
+ #Finish
+ commandString = commandString.rstrip
+ commandString << "\n}"
+
# That's it, print to screen now
puts commandString
- #puts "*" * @columnWidth
- puts "\n"
end
def generateAPIFolderList( hash, depth )
@@ -1347,7 +1350,7 @@ class Display
commandString << "<"
end
commandString << " " << hash["PresetName"]
- commandString << "\\n\");\n\n"
+ commandString << "\\n\");\n"
puts commandString
end
@@ -1361,7 +1364,7 @@ class Display
(depth+1).times do
commandString << ">"
end
- commandString << "\\n\");\n\n"
+ commandString << "\\n\");\n"
puts commandString
end
@@ -1696,7 +1699,6 @@ class Display
# That's it, print to screen now
puts commandString
- puts "\n"
end
end