r3516 - trunk/scripts
Andres Salomon
dilinger at costa.debian.org
Sat Jul 16 00:29:54 UTC 2005
Author: dilinger
Date: 2005-07-16 00:29:54 +0000 (Sat, 16 Jul 2005)
New Revision: 3516
Modified:
trunk/scripts/split-config
Log:
nothing's actually using the Shell class..
Modified: trunk/scripts/split-config
===================================================================
--- trunk/scripts/split-config 2005-07-16 00:28:10 UTC (rev 3515)
+++ trunk/scripts/split-config 2005-07-16 00:29:54 UTC (rev 3516)
@@ -21,33 +21,6 @@
require 'getoptlong'
require 'open3'
-class Shell
- def Shell.quote(s)
- "'" + s.gsub("'") { |i| "'\\''" } + "'"
- end
-
- def Shell.quote!(s)
- s.replace(quote(s))
- end
-
- def Shell.command(cmd)
- if cmd.class == Array
- s = cmd.shift
- cmd.each { |arg|
- s += ' ' + Shell.quote(arg)
- }
- cmd = s
- end
-
- ret = Open3.popen3(cmd + ';echo $?') { |si,so,se|
- [ so.readlines, se.readlines ]
- }
- errno = ret[0].pop.to_i
- raise "Error: cannot execute command #{cmd}: #{ret[1].join('')}" if errno != 0
- ret
- end
-end
-
def parse_config(file, kconf)
File.open(file).each { |line|
if line =~ /^(CONFIG_\w+)=(.+)$/
More information about the Kernel-svn-changes
mailing list