Ver código fonte

Add spaces between formats to help distinguish and skip

Alois Mahdal 2 anos atrás
pai
commit
c56b2366bc
1 arquivos alterados com 10 adições e 0 exclusões
  1. 10
    0
      bin/mkx

+ 10
- 0
bin/mkx Ver arquivo

@@ -45,25 +45,30 @@ mktemplate() {
45 45
     # Print template $Template for $FilePath
46 46
     #
47 47
     case "$Template" in
48
+
48 49
         sh)
49 50
             echo "#!/bin/sh"
50 51
             echo ''
51 52
             echo ''
52 53
             ;;
54
+
53 55
         bash|Bash)
54 56
             echo "#!/bin/bash"
55 57
             echo ''
56 58
             echo ''
57 59
             ;;
60
+
58 61
         sed)
59 62
             echo "#!/bin/sed -f"
60 63
             echo ''
61 64
             echo ''
62 65
             ;;
66
+
63 67
         lua|Lua)
64 68
             echo "#!$(which lua)"
65 69
             echo ''
66 70
             ;;
71
+
67 72
         pl|Perl)
68 73
             echo "#!$(which perl)"
69 74
             echo ''
@@ -72,18 +77,21 @@ mktemplate() {
72 77
             echo ''
73 78
             echo ''
74 79
             ;;
80
+
75 81
         py|Python)
76 82
             echo "#!$(which python)"
77 83
             echo ''
78 84
             echo "if __name__ == '__main__':"
79 85
             echo '    '
80 86
             ;;
87
+
81 88
         py3|Python3)
82 89
             echo "#!/usr/bin/python3"
83 90
             echo ''
84 91
             echo "if __name__ == '__main__':"
85 92
             echo '    '
86 93
             ;;
94
+
87 95
         pya)
88 96
             echo '#!/usr/bin/python'
89 97
             echo '"""'
@@ -122,6 +130,7 @@ mktemplate() {
122 130
             echo 'if __name__ == '__main__':'
123 131
             echo '    App.main(sys.argv)'
124 132
             ;;
133
+
125 134
         shellfu)
126 135
             echo "#!/bin/bash"
127 136
             echo ""
@@ -145,6 +154,7 @@ mktemplate() {
145 154
             echo ''
146 155
             echo 'main "$@"'
147 156
             ;;
157
+
148 158
         *)
149 159
             die "unknown template or language: $Template"
150 160
             ;;