Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
bdb603c7
Commit
bdb603c7
authored
Jul 25, 2001
by
Vincent Zweije
Browse files
Add clean tag creation script
parent
6328f7a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
sucl/Makefile
View file @
bdb603c7
...
...
@@ -17,7 +17,7 @@ clean:
rm
-Rf
errors.err
$(SYS)
tags
:
*.dcl *.icl ../compiler/*.dcl ../compiler/*.icl
cleantags
$^
>
$@
sh
cleantags
$^
>
$@
%
:
$(SYS)/%.abc
@
:
...
...
sucl/cleantags
0 → 100755
View file @
bdb603c7
#!/bin/sh
# $Id$
if
[
$#
=
0
]
then
echo
"usage:
`
basename
$0
`
file.{icl,dcl} ... >tags"
>
&2
exit
1
fi
{
echo
'!_DUMMY tags // ;" vi:set ts=32 noet:'
for
f
do
qf
=
"
`
echo
\"
$f
\"
|
sed
-e
's:/:\\\\/:g'
`
"
sed
-n
-e
"/^::[ ]*
\<
[A-Za-z0-9_]*
\>
/{"
\
-e
"s/^
\(
::[ ]*
\<\(
[A-Za-z0-9_]*
\)\>\)
.*/
\2
$qf
\/
^
\1\/
/"
\
-e
"s/ /
\\\\
t/g"
\
-e
"s/
\\\\
t/ /"
\
-e
"s/
\\\\
t/ /"
\
-e
p
\
-e
\}
\
-e
"/
\<
[A-Za-z0-9_]*
\>
[ ]*::/{"
\
-e
"s/.*
\(\<\(
[A-Za-z0-9_]*
\)\>
[ ]*::
\)
.*/
\2
$qf
\/\1\/
/"
\
-e
"s/ /
\\\\
t/g"
\
-e
"s/
\\\\
t/ /"
\
-e
"s/
\\\\
t/ /"
\
-e
p
\
-e
\}
\
$f
done
}
|
sort
Write
Preview
Supports
Markdown
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