|
@@ -45,7 +45,7 @@ fi |
|
|
esac |
|
|
esac |
|
|
|
|
|
|
|
|
# create.sh |
|
|
# create.sh |
|
|
echo 'cp template.cpp $1.cpp \n' > $DIR/create.sh |
|
|
|
|
|
|
|
|
echo $'cp template.cpp $1.cpp \n' > $DIR/create.sh |
|
|
printf "$editor " >> $DIR/create.sh |
|
|
printf "$editor " >> $DIR/create.sh |
|
|
printf '$1.cpp ' >> $DIR/create.sh |
|
|
printf '$1.cpp ' >> $DIR/create.sh |
|
|
|
|
|
|
|
@@ -55,7 +55,7 @@ read -p "Press enter to create template" A |
|
|
$editor $DIR/template.cpp |
|
|
$editor $DIR/template.cpp |
|
|
|
|
|
|
|
|
# run.sh |
|
|
# run.sh |
|
|
echo 'g++ -o $1.out -g $1.cpp\n./$1.out' > $DIR/run.sh |
|
|
|
|
|
|
|
|
echo $'g++ -o $1.out -g $1.cpp\n./$1.out' > $DIR/run.sh |
|
|
|
|
|
|
|
|
# make all executable |
|
|
# make all executable |
|
|
chmod +x $DIR/create.sh |
|
|
chmod +x $DIR/create.sh |
|
|