You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
258 B
11 lines
258 B
#!/bin/sh
|
|
COMPILE_CMD="g++ dict/*.cc dictcc.cc -o dictcc -lcurl -lcurlpp -g"
|
|
INST_FILE="/usr/local/bin/dictcc"
|
|
INST_CMD="sudo ln -s $PWD/dictcc $INST_FILE"
|
|
echo "Compiling ... "
|
|
$COMPILE_CMD
|
|
echo "Installing ..."
|
|
if [ ! -f "$INST_FILE" ]
|
|
then
|
|
$INST_CMD
|
|
fi
|
|
|