Revision 0278c2e,
228 bytes
checked in by Anders Kaseorg <andersk@…>, 14 years ago
(diff) |
Mark decode script executable
git-svn-id: svn+ssh://svn.mit.edu/athena/trunk/debathena/debathena/config-package-dev@25060 728af825-273c-0410-89f9-f7d3b574a069
|
-
Property mode set to
100755
|
Line | |
---|
1 | #!/usr/bin/perl |
---|
2 | $ARGV[0] =~ s/\+([^+]*)\+/unparse($1)/eg; |
---|
3 | print $ARGV[0]; |
---|
4 | sub unparse { |
---|
5 | $_ = $_[0]; |
---|
6 | return "/" unless $_; |
---|
7 | return "_" if $_ eq "-"; |
---|
8 | return uc($_) if /^[a-z]$/; |
---|
9 | s/^x//; |
---|
10 | return chr hex $_; |
---|
11 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.