Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
b908f01a
Commit
b908f01a
authored
Jul 28, 2013
by
yoogx
Browse files
* Move from svn to git
parent
83086cfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
support/update_headers.sh
View file @
b908f01a
...
...
@@ -23,11 +23,11 @@ cd ${work_dir}
if
test
$#
=
0
;
then
echo
"Updating headers for changed and new files"
changed_files
=
`
svn
status
-
q
|
grep
"^
[M]
"
|
grep
'\.\(\(ad[bs]\)\|\(gpr\)\)'
|
awk
'{print $NF}'
`
changed_files
=
`
git
status
-
s
|
grep
"^
\
M
"
|
grep
'\.\(\(ad[bs]\)\|\(gpr\)\)'
|
awk
'{print $NF}'
`
added_files
=
`
svn status
-q
|
grep
"^[A]"
|
grep
'\.\(\(ad[bs]\)\|\(gpr\)\)'
|
awk
'{print $NF}'
`
# For changed files, update the header
for
i
in
${
changed_files
}
;
do
...
...
@@ -43,7 +43,7 @@ if test $# = 0 ; then
else
if
test
x
${
1
}
=
xall
;
then
echo
"Updating headers for all files"
find
.
-name
"*.adb"
-exec
${
script_dir
}
/headers_ocarina
$1
'{}'
\;
find
.
-name
"*.ads"
-exec
${
script_dir
}
/headers_ocarina
$1
'{}'
\;
find
.
-name
"*.gpr"
-exec
${
script_dir
}
/headers_ocarina
$1
'{}'
\;
...
...
@@ -54,4 +54,3 @@ else
fi
exit
0
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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