浏览代码

Updated with mkexec.pl

Alois Mahdal 12 年前
父节点
当前提交
67637a5aac
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14
    0
      README.md

+ 14
- 0
README.md 查看文件

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