Przeglądaj źródła

Updated with mkexec.pl

Alois Mahdal 11 lat temu
rodzic
commit
67637a5aac
1 zmienionych plików z 14 dodań i 0 usunięć
  1. 14
    0
      README.md

+ 14
- 0
README.md Wyświetl plik

21
 of thumb goes without saying: "no green, no commit".
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
 ### timestamp.pl ###
38
 ### timestamp.pl ###
25
 
39
 
26
 Script to measure how long does one second take.  For those that know how long
40
 Script to measure how long does one second take.  For those that know how long