]> andersk Git - config-package-dev.git/commitdiff
Add the decode file itself to version control.
authorTim Abbott <tabbott@mit.edu>
Sun, 9 May 2010 18:44:31 +0000 (18:44 +0000)
committerTim Abbott <tabbott@mit.edu>
Sun, 9 May 2010 18:44:31 +0000 (18:44 +0000)
git-svn-id: svn+ssh://svn.mit.edu/athena/trunk/debathena/debathena/config-package-dev@24647 728af825-273c-0410-89f9-f7d3b574a069

decode [new file with mode: 0644]

diff --git a/decode b/decode
new file mode 100644 (file)
index 0000000..73a216a
--- /dev/null
+++ b/decode
@@ -0,0 +1,11 @@
+#!/usr/bin/perl
+$ARGV[0] =~ s/\+([^+]*)\+/unparse($1)/eg;
+print $ARGV[0];
+sub unparse {
+    $_ = $_[0];
+    return "/" unless $_;
+    return "_" if $_ eq "-";
+    return uc($_) if /^[a-z]$/;
+    s/^x//;
+    return chr hex $_;
+}
This page took 0.028353 seconds and 5 git commands to generate.