File: fixdatepath.sh

package info (click to toggle)
soap4r 1.4.8-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,472 kB
  • ctags: 2,206
  • sloc: ruby: 19,295; makefile: 58; sh: 41; perl: 10
file content (9 lines) | stat: -rw-r--r-- 134 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/bin/sh

f=$1

sed -e '/^require[[:space:]].*date/{
i\
$:.unshift("/usr/lib/ruby/1.6/soap/date2")
}' < $f > $f.new && mv $f.new $f