root/Whitix/trunk/user/portupload.sh

Revision 1667, 493 bytes (checked in by mwhitworth, 3 years ago)

Merge in chanes from keobject.

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3#Check for at least an action and package name.
4EXPECTED_ARGS=1
5E_BADARGS=65
6
7if [ $# -lt $EXPECTED_ARGS ]
8then
9        echo "Usage: `basename $0` [package name]"
10        exit $E_BADARGS
11fi
12
13stty -echo
14read -p "Password for whitix.org ports account:" -e PASSWORD
15stty echo
16
17echo "Sucessful."
18
19# Tar and gzip the directory.
20tar -cf $1.tar $1
21gzip -f $1.tar
22echo "FTPing."
23ftp -inv ftp.whitix.org<<ENDFTP
24user ports $PASSWORD
25bin
26put $1.tar.gz
27bye
28ENDFTP
29
30echo -e "\n\nUploaded $1 successfully."
Note: See TracBrowser for help on using the browser.