projects
/
grml-tips.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6c9feec
)
Write into tag file
author
Alexander Wirt
<formorer@grml.org>
Wed, 11 Jan 2012 12:45:44 +0000
(13:45 +0100)
committer
Alexander Wirt
<formorer@grml.org>
Wed, 11 Jan 2012 12:45:44 +0000
(13:45 +0100)
grml-tips-tags
patch
|
blob
|
history
diff --git
a/grml-tips-tags
b/grml-tips-tags
index
3b27469
..
8726205
100755
(executable)
--- a/
grml-tips-tags
+++ b/
grml-tips-tags
@@
-24,9
+24,12
@@
while (my $line = <$fh>) {
push @tags, split(/[, ]+/, $1);
}
+close ($fh);
#make tags unique
my %seen = ();
@tags = grep { ! $seen{$_} ++ } @tags;
+open (my $fh, '>', '/usr/share/grml-tips/tags')
+ or die "Could not open '/usr/share/grml-tips/tags' for writing: $!"
print $fh join("\n", @tags) . "\n";
close($fh)