-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsf.sh
More file actions
38 lines (34 loc) · 965 Bytes
/
sf.sh
File metadata and controls
38 lines (34 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
printf " _____ ______ __ ______ __ ____ ___ ____ __________ \n"
printf " / ___// ____/ / / / / __ \/ / / __ \/ | / __ \/ ____/ __ \ \n"
printf " \__ \/ /_ / / / / /_/ / / / / / / /| | / / / / __/ / /_/ / \n"
printf " ___/ / __/ / /_/ / ____/ /__/ /_/ / ___ |/ /_/ / /___/ _, _/ \n"
printf "/____/_/ \____/_/ /_____\____/_/ |_/_____/_____/_/ |_| \n"
printf " \n Enter Your Source Forge ID : "
read USER
printf "\n Enter Your Device Codename : "
read DEVICE
printf "\n Enter Rom Name : "
read ROM
printf "\n Enter project name : "
read PROJECT
printf "\n Enter folder name : "
read FOLDER
printf "\n Need custom build date? : "
read answer
if [ $answer == y ]
then
printf "\n Enter Date : "
read DATE
else
DATE=$(date +'%d')
fi
DIRS=/home/frs/project/$PROJECT/$FOLDER
OUT=out/target/product/$DEVICE
HOST=frs.sourceforge.net
cd $OUT
sftp $USER@$HOST <<EOF
cd $DIRS
put *$ROM*$DATE*.zip
EOF
cd ../../../..