Skip to content

Commit

Permalink
Fix portiability of env; use perl w/o -p
Browse files Browse the repository at this point in the history
only slightly longer and already done in the smudge filter

[ci skip]
  • Loading branch information
krono committed Apr 6, 2020
1 parent e8d286f commit 9191db9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .git_filters/RevDateURL.clean
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/usr/bin/env -S perl -p
#!/usr/bin/env perl
while (<>) {

s/\$Date[^\$]*\$/\$Date\$/;
s/\$Rev[^\$]*\$/\$Rev\$/;
s/\$URL[^\$]*\$/\$URL\$/;
s/\$CommitHash[^\$]*\$/\$CommitHash\$/;

} continue {
print or die "-p destination: $!\n";
}

0 comments on commit 9191db9

Please sign in to comment.