Diffstat (limited to 'noncore/apps/qashmoney/make_ipk') (more/less context) (ignore 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 @@ | |||
1 | # Use this script to make the IPK file for distribution | ||
2 | # It assumes you are the root user. Ipkg likes to have all | ||
3 | # its files owned by root and this script does that. | ||
4 | # Change the user name from "allen" to your user name | ||
5 | # If you want to use this script | ||
6 | |||
7 | # Set the environment variables for the arm environment | ||
8 | echo "Setting environment variables..." | ||
9 | source arm.sh | ||
10 | |||
11 | # Remove any exisitng IPK files | ||
12 | echo "Removing exisiting IPK files..." | ||
13 | rm -rf *.ipk | ||
14 | |||
15 | # Strip the binary file | ||
16 | echo "Stripping the binary file..." | ||
17 | arm-linux-strip qashmoney | ||
18 | |||
19 | # Move the file to the right location | ||
20 | echo "Moving the binary file..." | ||
21 | mv qashmoney install/opt/QtPalmtop/bin && | ||
22 | |||
23 | # Change ownership of all the files | ||
24 | echo "Changing ownership of all files..." | ||
25 | chown -R root install | ||
26 | chgrp -R root install | ||
27 | chmod -R 0777 install | ||
28 | |||
29 | # Make the IPK | ||
30 | echo "Making the IPK file..." | ||
31 | ./ipkg-build install | ||
32 | |||
33 | # Remove the binary from the bin directory so we can make the tarball | ||
34 | echo "Removing qashmoney binary file..." | ||
35 | rm -rf install/opt/QtPalmtop/bin/qashmoney | ||
36 | |||
37 | # Restore ownership of all files | ||
38 | echo "Restoring ownership of all files..." | ||
39 | chown -R allen install | ||
40 | chgrp -R allen install | ||
41 | chmod -R 0777 install | ||