File: cfg_path.sh

package info (click to toggle)
lynx-cur 2.8.7dev4-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 12,748 kB
  • ctags: 10,819
  • sloc: ansic: 120,416; sh: 3,525; makefile: 917; perl: 884
file content (5 lines) | stat: -rwxr-xr-x 252 bytes parent folder | download | duplicates (12)
1
2
3
4
5
#!/bin/sh
# Use this script for substituting the configured path into lynx.cfg -
# not all paths begin with a slash.
SECOND=`echo "$2" | sed -e 's,^/,,'`
sed -e "/^[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]*:file:/s,/PATH_TO/$1,/$SECOND,"