New app ported to OS X

Originally posted by hekal
I've ported obliterate 0.4, a secure file delete utility. Nothing fancy here, but it works.
Thanks to DJ for the install script. :)

No thanks Hekal ;-)
You should prob. take this out the script.

# Installing binary of obliterate
ln -s /usr/local/bin/obliterate /bin/
chmod 755 /bin/obliterate

It is not really permitted to install new stuff (Additions in /bin). I know i did at a point, but that was only a temporary workaround, until i got the StartupScript running.
BTW you already installed it in /usr/local/bin and that makes installing it in /bin unneccesary.

I would suggest this.

#! /bin/sh -v

# Copying program to local
cp -r ../obliterate0.4 /usr/local/
chmod -R 755 /usr/local/obliterate0.4

# Creating /usr/local/bin (if it doesn't exist)
mkdir /usr/local/bin

# Linking obliterate to /usr/local/bin
ln -s /usr/local/obliterate0.4/obliterate /usr/local/bin/
chmod 755 /usr/local/bin/obliterate

# Creating man directories
mkdir /usr/local/share
mkdir /usr/local/share/man
mkdir /usr/local/share/man/man8

# Installing man pages
cp ./obliterate.8 /usr/local/share/man/man8
chmod -R 755 /usr/local/share/man

It is a little more according the (unwritten) rules. Though not perfect.

DJ

[Edited by The DJ on 10-05-2000 at 08:27 PM]
 
Originally posted by hekal
I will make appropriate changes :)

I edited the post on the same time as you made this post, make sure you have the edited script
And i'm off to bed now. It's been a long day,again.
 
Back
Top