File tree Expand file tree Collapse file tree 4 files changed +57
-1
lines changed Expand file tree Collapse file tree 4 files changed +57
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,18 @@ option of deleting temporary files.
66
77### how to install
881 . ** first :** ` cd linux-automation/ccompile `
9- 2 . ** secondly :** ` sudo chmod +x install.sh && sh install.sh `
9+ 2 . ** secondly :** ` sudo chmod +x install.sh && ./install.sh `
10+ * to execute a c file : ccompile [ name of c file] [ name of output] *
11+ 3 . ** enjoy**
12+
13+ ## cppcompl:
14+ ccompile : is a simple tool that use g++ to execute your c++ files and give you output and
15+ option of deleting temporary files.
16+
17+ ### how to install
18+ 1 . ** first :** ` cd linux-automation/c++compile `
19+ 2 . ** secondly :** ` sudo chmod +x install.sh && ./install.sh `
20+ * to execute a c++ file : cppcompl [ name of c++ file] [ name of output] *
10213 . ** enjoy**
1122
1223##### from azzedine lakhdar
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+
4+
5+ if [[ " $1 " != " " || " $2 " != " " ]] ;
6+ then
7+ g++ -Wall $1 -o $2
8+ printf " <--********************* your program mr $USER ********************************\n"
9+ ./$2
10+ printf " \n********************************************************** -->"
11+ printf " \n do u want to deleat temporary file (executables) [Y/n] default n :"
12+ read answer
13+ if [[ $answer != " y" && $answer != " Y" ]];
14+ then
15+ printf " \n<-- good bye -->\n"
16+ else
17+ rm $2
18+ printf " \ndone succesfully \n<-- good bye -->\n"
19+ fi
20+
21+ else
22+ printf " \nplease enter a valid entry"
23+ printf " \n-->azzedine Open source program ... \n \t\tcppcompl [name of c++ file] [name of output]\n"
24+ printf " retry please\n"
25+ fi
26+ sleep 1
27+ printf " \n+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ printf " GNU LINUX c++ compiler with g++ \nV 1.0 by Azzedine \n open source with apache licence "
3+ sudo apt install g++
4+ printf " \n based on gcc compiler "
5+ sudo mkdir /bin/cppcompl.d
6+ printf " \ndirectory made in /bin/cppcompl.d"
7+ sudo cp Cppcompl.sh /bin/cppcompl.d
8+ printf " \ncopied succefully"
9+ sudo chmod +x /bin/cppcompl.d/Cppcompl.sh
10+ printf " \nchmod succesfully"
11+ sudo echo " alias cppcompl='/bin/cppcompl.d/Cppcompl.sh'" >> ~ /.bashrc
12+ exec bash
13+ printf " \n alias created succefully"
14+ printf " \nto use cppcompl \n use it in this format: cppcompl [c++ file name] [output file name]\n"
Original file line number Diff line number Diff line change 1+ #include <stdio.h>
2+ int main (){
3+ printf ("hello world from ccompile" );
4+ }
You can’t perform that action at this time.
0 commit comments