Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added commit and commitlog functionality #74

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions berakrishnendu36/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
CXX := g++
CXX_FLAGS := -std=c++17 -ggdb -L/usr/local/opt/openssl/lib -I /usr/local/opt/openssl/include
BIN := bin
SRC := src
INCLUDE :=
LIB := lib
LIBRARIES :=
EXECUTABLE := main



all: $(BIN)/$(EXECUTABLE)

run: clean all
@echo "run called"
./$(BIN)/$(EXECUTABLE)

$(BIN)/$(EXECUTABLE): $(SRC)/*.cpp
$(CXX) $(CXX_FLAGS) -I$(INCLUDE) -L$(LIB) $^ -o $ ~/imperium/$(BIN)/$(EXECUTABLE) $(LIBRARIES) -lssl -lcrypto

clean:
@echo "clean called"
@rm -rf -d ~/imperium/$(BIN)/*
16 changes: 16 additions & 0 deletions berakrishnendu36/scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
# brew update
# brew install openssl
# brew install libssl-dev
mkdir -p ~/imperium/bin
cp imperium.sh ~/imperium
cd ..
make
cd ~/imperium/bin || echo "error"
chmod +x main
cd ..
if grep -q "source $PWD/imperium.sh" "$PWD/../.bash_profile" ; then
echo 'already installed bash source';
else
echo "source $PWD/imperium.sh" >> ~/.bash_profile;
fi
7 changes: 7 additions & 0 deletions berakrishnendu36/scripts/imperium.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function imperium(){
DIR=$PWD
export dir=$DIR
cd ~/imperium/bin || echo "Error"
./main "$@"
cd "$DIR" || echo "Error"
}
Loading