Project

General

Profile

Actions

bug #6190

closed

remove svn property place holder in first line of code

Added by Andreas Kohlbecker over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Priority14
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
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}
Actions #1

Updated by Andreas Kohlbecker over 7 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
Actions #2

Updated by Andreas Müller over 7 years ago

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

Actions #3

Updated by Andreas Kohlbecker about 7 years ago

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

Updated by Andreas Kohlbecker about 7 years ago

  • Description updated (diff)
Actions #5

Updated by Andreas Kohlbecker about 7 years ago

  • Description updated (diff)
Actions #6

Updated by Andreas Kohlbecker about 7 years ago

  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF