Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
b9db99ce
Commit
b9db99ce
authored
Aug 16, 2003
by
Per Cederqvist
Browse files
Initial commit.
parent
dd74565e
Changes
2
Hide whitespace changes
Inline
Side-by-side
scripts/definepath
0 → 100755
View file @
b9db99ce
#!/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"/'
scripts/unprefix
0 → 100755
View file @
b9db99ce
#!/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%^//*%%'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment