making rpm files..

i had written a program with java[a simple dictionary] for installing my application on linux i wrote a shellscript which installs the files and makes command for my program...this is my shellscript:
if [ -d /usr/SDic ]
then
#rm -d /usr/SDic
if [ -f /usr/SDic/1.dat ]
then
rm /usr/SDic/1.dat
fi

if [ -f /usr/SDic/MyJar.jar ]
then
rm /usr/SDic/MyJar.jar
fi
else
mkdir /usr/SDic
if [ -f /usr/SDic/1.dat ]
then
rm /usr/SDic/1.dat
fi

if [ -f /usr/SDic/MyJar.jar ]
then
rm /usr/SDic/MyJar.jar
fi
fi

cp 1.dat /usr/SDic
cp MyJar.jar /usr/SDic
rm /bin/sdic
cp sdic /bin
chmod +x /bin/sdic
..............................
but i wanna install it as rpm file what should I do?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories