Skip to content

Commit

Permalink
Remove '$Id' tags; they are useless under git.
Browse files Browse the repository at this point in the history
Fix checkFile for git.
  • Loading branch information
julianhyde committed Nov 29, 2012
1 parent b6801fd commit 31cdbb5
Show file tree
Hide file tree
Showing 222 changed files with 5,939 additions and 6,581 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
@@ -1,4 +1,4 @@
# $Id$
# CHANGES.txt

###############################################################################

Expand Down
2 changes: 0 additions & 2 deletions README.txt
@@ -1,5 +1,3 @@
# $Id$

olap4j, release 1.0.1

Contents of this distribution
Expand Down
2 changes: 0 additions & 2 deletions RELEASE_CHECKLIST.txt
@@ -1,5 +1,3 @@
# $Id$

olap4j release check-list
=========================

Expand Down
3 changes: 1 addition & 2 deletions build.properties
@@ -1,5 +1,4 @@
#
# $Id$
# build.properties
#
# Licensed to Julian Hyde under one or more contributor license
# agreements. See the NOTICE file distributed with this work for
Expand Down
2 changes: 0 additions & 2 deletions build.xml
@@ -1,6 +1,4 @@
<!--
== $Id$
==
== Licensed to Julian Hyde under one or more contributor license
== agreements. See the NOTICE file distributed with this work for
== additional information regarding copyright ownership.
Expand Down
5 changes: 0 additions & 5 deletions checkFile.awk
@@ -1,5 +1,4 @@
#!/bin/gawk
# $Id$
#
# Licensed to Julian Hyde under one or more contributor license
# agreements. See the NOTICE file distributed with this work for
Expand Down Expand Up @@ -136,10 +135,6 @@ FNR == 1 {
# generated; does not contain standard header
} else if (1) {
headers[headerCount++] = "/\\*$";
if (_isOlap4j(fname)) {
headers[headerCount++] = /^\/\/ \$Id: /;
headers[headerCount++] = "//";
}
headers[headerCount++] = "// Licensed to Julian Hyde under one or more contributor license$";
headers[headerCount++] = "// agreements. See the NOTICE file distributed with this work for$";
headers[headerCount++] = "// additional information regarding copyright ownership.$";
Expand Down
15 changes: 6 additions & 9 deletions checkFile.sh
@@ -1,5 +1,4 @@
#!/bin/bash
# $Id$
#
# Licensed to Julian Hyde under one or more contributor license
# agreements. See the NOTICE file distributed with this work for
Expand Down Expand Up @@ -33,8 +32,7 @@ usage() {
echo "checkFile [ <options> ] <file>..."
echo " Checks a list of files."
echo "checkFile [ <options> ] --opened"
echo " Checks all files that are opened for edit in the current"
echo " perforce client."
echo " Checks all files that are opened in git. Implies --strict."
echo "checkFile [ <options> ] --under <dir>"
echo " Recursively checks all files under a given directory."
echo "checkFile --help"
Expand Down Expand Up @@ -171,7 +169,7 @@ doCheckDeferred() {
if [ -s "${deferred_file}" ]; then
maxLineLength=80
cat "${deferred_file}" |
xargs gawk -f "$CHECKFILE_AWK" \
xargs -P $(expr ${CORE_COUNT} \* 2) -n 100 gawk -f "$CHECKFILE_AWK" \
-v strict="$strict" \
-v maxLineLength="$maxLineLength"
fi
Expand Down Expand Up @@ -226,6 +224,7 @@ opened=
if [ "$1" == --opened ]; then
opened=true
deferred=
strict=2
shift
fi

Expand Down Expand Up @@ -272,10 +271,9 @@ if [ "$under" ]; then
doCheck "$filePath" "$file" ""
done
elif [ "$opened" ]; then
p4 opened |
gawk -F'#' '$2 !~ / - delete/ {print $1}' |
while read line; do
file=$(p4 where "$line" | gawk '{print $3}' | tr \\\\ /)
git checkout |
gawk '$1 != "D" {print $2}' |
while read file; do
doCheck "$file" "$file" "80"
done
else
Expand All @@ -302,4 +300,3 @@ rm -f /tmp/checkFile_output_$$.txt
exit $status

# End checkFile.sh

2 changes: 0 additions & 2 deletions doc/index.html
Expand Up @@ -3,8 +3,6 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!--
== $Id$
==
== Licensed to Julian Hyde under one or more contributor license
== agreements. See the NOTICE file distributed with this work for
== additional information regarding copyright ownership.
Expand Down

0 comments on commit 31cdbb5

Please sign in to comment.