File: definepath

package info (click to toggle)
lyskom-server 2.1.2-18.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,740 kB
  • sloc: ansic: 51,006; exp: 12,368; sh: 10,501; python: 2,927; makefile: 1,024; yacc: 466; awk: 340; lisp: 271; lex: 218; sed: 50
file content (6 lines) | stat: -rwxr-xr-x 272 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
#!/bin/sh
# usage: definepath top_srcdir prefix pp-symbol path
#
# Emit '#define pp-symbol "path"', where a leading prefix of path is removed.
echo '#define '$3'                   "'"`$1/scripts/unprefix "$2" "$4"`"'"' \
| sed 's/\(........................... \) *"/\1"/'