Project

General

Profile

bug #6190

remove svn property place holder in first line of code

Added by Andreas Kohlbecker about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Priority14
Category:
cdmlib
Target version:
Start date:
11/09/2016
Due date:
% Done:

100%

Severity:
normal
Found in Version:

Description

The first line of almost each java code file is a special place holder '// $Id$' which was meant to be replaced by the svn revision number.
This is no longer useful and should be removed.


The removal of the lines in question has been done with the following scripts:

code-cleanup.sh

#!/bin/bash

TMPF=cleanup.tmp
FILE_PATTERN="*.java" # inc|module|install|php|info)"
TARGED_FOLDER=$1

find $1 -type f -name "$FILE_PATTERN" -not -path '*/.*'  -exec bash -c './svn-prop-remove.awk $1 > cleanup.tmp && mv cleanup.tmp $1' - {} \;

svn-prop-remove.awk

#!/usr/bin/awk -f 
BEGIN {
}
NR==1 && $0 !~ /^\/\/ \$Id/ {print $0}
NR>1 {print $0}

Associated revisions

Revision f05fd10f (diff)
Added by Andreas Kohlbecker almost 2 years ago

ref #6190 removing svn property place holder in first line of code

Revision d45008d0 (diff)
Added by Andreas Kohlbecker almost 2 years ago

ref #6190 removing svn property place holder in first line of code

Revision 7b2a0df1 (diff)
Added by Andreas Kohlbecker almost 2 years ago

ref #6190 removing svn property place holder in first line of code

Revision c2c69eb8 (diff)
Added by Andreas Kohlbecker almost 2 years ago

ref #6190 removing svn property place holder in first line of code

Revision 8ec6cdfe (diff)
Added by Andreas Kohlbecker almost 2 years ago

ref #6190 removing svn property place holder in first line of code - java files

Revision e3240965 (diff)
Added by Andreas Kohlbecker almost 2 years ago

ref #6190 removing svn property place holder in first line of code - java files

Revision ebc31cb0 (diff)
Added by Andreas Kohlbecker almost 2 years ago

ref #6190 removing svn property place holder in first line of code - java files

Revision eb291d61 (diff)
Added by Andreas Kohlbecker almost 2 years ago

ref #6190 removing svn property place holder in first line of code

Revision e15d2c8e (diff)
Added by Andreas Kohlbecker almost 2 years ago

ref #6190 removing svn property place holder in first line of code - java files

History

#1 Updated by Andreas Kohlbecker about 2 years ago

  • Subject changed from remove svn property placehoder in first line of code to remove svn property place holder in first line of code

#2 Updated by Andreas Müller about 2 years ago

This can now be done automatically as model changes are fully merged into develop now.

#3 Updated by Andreas Kohlbecker almost 2 years ago

  • Description updated (diff)
  • Status changed from New to Closed

#4 Updated by Andreas Kohlbecker almost 2 years ago

  • Description updated (diff)

#5 Updated by Andreas Kohlbecker almost 2 years ago

  • Description updated (diff)

#6 Updated by Andreas Kohlbecker almost 2 years ago

  • % Done changed from 0 to 100

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)