Quellcode durchsuchen

Updated with mkexec.pl

Alois Mahdal vor 12 Jahren
Ursprung
Commit
67637a5aac
1 geänderte Dateien mit 14 neuen und 0 gelöschten Zeilen
  1. 14
    0
      README.md

+ 14
- 0
README.md Datei anzeigen

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