Browse Source

Add spaces between formats to help distinguish and skip

Alois Mahdal 2 years ago
parent
commit
c56b2366bc
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      bin/mkx

+ 10
- 0
bin/mkx View File

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