File: Subst

package info (click to toggle)
yaws 1.88-2%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 5,544 kB
  • ctags: 5,440
  • sloc: erlang: 27,321; sh: 3,823; ansic: 1,264; makefile: 874; lisp: 79; xml: 12; python: 3
file content (13 lines) | stat: -rwxr-xr-x 130 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh


p=$1

if [ `uname -a | fgrep -c Cygwin` != 0 ]; then 
    d=`cygpath -m "$2"` 
else
    d=$2 
fi

sed -e "s;$p;$d;g"