Commit 5a7d354e authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Retire TidyDesc

Use INSTAPP_VERSION from the shared makefiles in preference.

Version 1.62. Tagged as 'Library-1_62'
parent 46020b4d
#!/usr/bin/env perl
#
# Copyright 2008 Castle Technology Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# $Id$
#
# Syntax: TidyDesc [<output file> [<input file>]]
#
# TidyDesc - tidies up desktop description files
# Input comes from stdin if input file is omitted.
# Output goes to stdout if output file is omitted.
# Input and output can be the same file.
# Setup output filename
$outputfile = @ARGV > 0 ? '>'.shift @ARGV : '>-';
# Read input
@contents = <>;
open(OUTPUT, $outputfile) or die("Unable to open output file $outputfile");
$blanks = 0;
# Collapse multiple blank lines into two blank lines, strip #line directives (or the gcc equivalent)
# Also unescape escaped characters (these are sometimes necessary to satisfy the C preprocessor)
foreach (@contents) {
chomp;
s/^#line.*$//;
s/^# \d*.*$//;
s/\\(.)/$1/g;
if (/^\s*$/) {
next if (++$blanks > 2);
}
else {
$blanks = 0;
}
print OUTPUT $_."\n";
}
close OUTPUT;
exit 0;
/* (1.61)
/* (1.62)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 1.61
#define Module_MajorVersion_CMHG 1.62
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 02 Apr 2013
#define Module_Date_CMHG 15 Jul 2013
#define Module_MajorVersion "1.61"
#define Module_Version 161
#define Module_MajorVersion "1.62"
#define Module_Version 162
#define Module_MinorVersion ""
#define Module_Date "02 Apr 2013"
#define Module_Date "15 Jul 2013"
#define Module_ApplicationDate "02-Apr-13"
#define Module_ApplicationDate "15-Jul-13"
#define Module_ComponentName "Library"
#define Module_ComponentPath "mixed/RiscOS/Library"
#define Module_FullVersion "1.61"
#define Module_HelpVersion "1.61 (02 Apr 2013)"
#define Module_LibraryVersionInfo "1:61"
#define Module_FullVersion "1.62"
#define Module_HelpVersion "1.62 (15 Jul 2013)"
#define Module_LibraryVersionInfo "1:62"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment