author | allenforsythe <allenforsythe> | 2003-05-04 22:02:48 (UTC) |
---|---|---|
committer | allenforsythe <allenforsythe> | 2003-05-04 22:02:48 (UTC) |
commit | 4593e3cf4eca4867e34b3220007c24523cf642b6 (patch) (side-by-side diff) | |
tree | bd8071834dec2a5008b1b270c7953f5cfd65754d /noncore/apps/qashmoney/make_ipk | |
parent | 2894d0b14c0b3efa3ce259214b5aa597a6abfed1 (diff) | |
download | opie-4593e3cf4eca4867e34b3220007c24523cf642b6.zip opie-4593e3cf4eca4867e34b3220007c24523cf642b6.tar.gz opie-4593e3cf4eca4867e34b3220007c24523cf642b6.tar.bz2 |
Initial revision
Diffstat (limited to 'noncore/apps/qashmoney/make_ipk') (more/less context) (show whitespace changes)
-rwxr-xr-x | noncore/apps/qashmoney/make_ipk | 41 |
1 files changed, 41 insertions, 0 deletions
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 |