Commit b9db99ce authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Initial commit.

parent dd74565e
#!/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"/'
#!/bin/sh
# usage: unprefix prefix path
#
# Print path, but if it starts with prefix, first remove the prefix.
echo "$2" \
| sed -e 's%^'"`echo $1|sed 's%//*$%%'`"'%%' -e tn -e q -e ':n' -e 's%^//*%%'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment