aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Makefile2
-rw-r--r--fix-eol2
3 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 07c8044..b88e24f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2007-06-24 Anssi Hannula <anssi@mandriva.org> 0.26
+ * fix fix-eol to not break files it tries to convert
+
2007-06-15 Guillaume Rousse <guillomovitch@mandriva.org> 0.25
* switch to a manual Changelog
* new helper script: fix-eol
diff --git a/Makefile b/Makefile
index ef48116..f941ac8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
PACKAGE = spec-helper
-VERSION = 0.25
+VERSION = 0.26
SVNPATH = svn+ssh://svn.mandriva.com/svn/soft/rpm/$(PACKAGE)
SCRIPT_FILES = spec-helper clean_files clean_perl compress_files strip_files \
diff --git a/fix-eol b/fix-eol
index 6e732f8..7d3bf21 100644
--- a/fix-eol
+++ b/fix-eol
@@ -33,7 +33,7 @@ sub convert {
# process all file
my $out = File::Temp->new(DIR => '.', UNLINK => 0);
print $out $line;
- while ($line = <$in> && defined $line) {
+ while (($line = <$in>) && defined $line) {
$line =~ s/\r\n$/\n/;
print $out $line;
}