From 4593e3cf4eca4867e34b3220007c24523cf642b6 Mon Sep 17 00:00:00 2001 From: allenforsythe Date: Sun, 04 May 2003 22:02:48 +0000 Subject: Initial revision --- (limited to 'noncore/apps/qashmoney/make_ipk') diff --git a/noncore/apps/qashmoney/make_ipk b/noncore/apps/qashmoney/make_ipk new file mode 100755 index 0000000..d477c83 --- a/dev/null +++ b/noncore/apps/qashmoney/make_ipk @@ -0,0 +1,41 @@ +# Use this script to make the IPK file for distribution +# It assumes you are the root user. Ipkg likes to have all +# its files owned by root and this script does that. +# Change the user name from "allen" to your user name +# If you want to use this script + +# Set the environment variables for the arm environment +echo "Setting environment variables..." +source arm.sh + +# Remove any exisitng IPK files +echo "Removing exisiting IPK files..." +rm -rf *.ipk + +# Strip the binary file +echo "Stripping the binary file..." +arm-linux-strip qashmoney + +# Move the file to the right location +echo "Moving the binary file..." +mv qashmoney install/opt/QtPalmtop/bin && + +# Change ownership of all the files +echo "Changing ownership of all files..." +chown -R root install +chgrp -R root install +chmod -R 0777 install + +# Make the IPK +echo "Making the IPK file..." +./ipkg-build install + +# Remove the binary from the bin directory so we can make the tarball +echo "Removing qashmoney binary file..." +rm -rf install/opt/QtPalmtop/bin/qashmoney + +# Restore ownership of all files +echo "Restoring ownership of all files..." +chown -R allen install +chgrp -R allen install +chmod -R 0777 install -- cgit v0.9.0.2