-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile.1
More file actions
68 lines (45 loc) · 1.64 KB
/
Copy pathcompile.1
File metadata and controls
68 lines (45 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
./"badger
.TH compile 1 "7/7/2022" "1.0" "compile man. page"
.SH NAME
compile - compiles a bash script into a stand-alone executable
.SH SYNOPSIS
compile file_to_compile [options]
.SH OPTIONS
.TP
.B -h, --help
Prints the help message.
.TP
.B -o
The output file name. If not specified, the output file will be named after the inputted file.
.TP
.B -v, --verbose
Enables verbose output.
.TP
.B -q, --question
Asks the user if they want to see more options after the script is compiled.
.SH DESCRIPTION
compile compiles a bash script into a stand-alone executable using the shc
command. shc converts the bash script into C code, and then GCC compiles the C code
into an executable.
The compiled script will not depend on any local files, so it can be easily
distributed and run on any system that has GCC installed.
.SH EXAMPLES
To compile the bash script `script.sh` into a stand-alone executable, you would use
the following command:
compile.sh script.sh
This would create an executable file named `script.exe`.
To specify the output file name, you would use the following command:
compile script.sh -o out.exe
This would create an executable file named `out.exe`.
To enable verbose output, you would use the following command:
compile -v script.sh
This would print more information about the compilation process.
To ask the user if they want to see more options after the script is compiled, you
would use the following command:
compile -q script.sh
This would ask the user if they want to see more options, such as running the
compiled script.
.SH BUGS
Please report any bugs to the author of this script.
.SH AUTHOR
This script was written by Badger Code.