Browse Source

Updated with mkexec.pl

Alois Mahdal 11 years ago
parent
commit
67637a5aac
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      README.md

+ 14
- 0
README.md View File

@@ -21,6 +21,20 @@ and around and be annoying about the fact that they fail.  Then the rule
21 21
 of thumb goes without saying: "no green, no commit".
22 22
 
23 23
 
24
+### mkexec.pl ###
25
+
26
+Make executable script for you and heat up vim.  Accepts filename as parameter.
27
+
28
+1.  try to guess type from name (e.g. .pl -> perl)
29
+2.  clobber(!) filename with shebang (based on `which` call)
30
+3.  chmod it to `0755` (yeah, hardcoded `0755`, no smartness here whatsoever)
31
+4.  try to heat up `vim` or `editor` for you.
32
+
33
+**Warning**: This clobbers filename without warnings but I'm too lazy to fix
34
+             that.  Either send a patch or make me feel emarrassed enough so
35
+             I'll do it myself.
36
+
37
+
24 38
 ### timestamp.pl ###
25 39
 
26 40
 Script to measure how long does one second take.  For those that know how long