5
if [ $EUID -ne 0 ]; then
14
# Install Writer (if compiling was successful)
19
echo "INSTALLING Writer..."
20
echo "===================="
23
# Copy executable to bin
24
echo 'Copying executable to: /usr/bin/writer'
25
$SUDO cp ../writer /usr/bin/
30
# copy .desktop to /usr/share/applications
31
echo 'Copying .desktop file to: /usr/share/applications/writer.desktop'
32
$SUDO cp ../data/writer.desktop /usr/share/applications/
37
if [ $ERRORS -eq 0 ]; then
39
echo 'Writer was installed successfully!'
40
echo 'Please log out and back in again to make sure Writer is recognised by the system'
41
echo 'Thanks for trying out Writer!'
45
echo "$ERRORS errors occurred!"
46
echo 'Writer was NOT installed successfully!'
52
echo 'Compilation Failed!'
53
echo 'Cannot install Writer!'
b'\\ No newline at end of file'