summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrikant Patnaik2015-02-07 14:25:10 +0530
committerSrikant Patnaik2015-02-07 14:25:10 +0530
commit73ecbe94c1573bc67ed407ef78166e2f210d139c (patch)
treeb08b265e05e7a4def47d9a409337adbfca19b230
parentb182a6878b86fb4d55bd85fa119ecaaf8e2b949c (diff)
downloadFOSSEE-netbook-patcher-AudioMic-2.tar.gz
FOSSEE-netbook-patcher-AudioMic-2.tar.bz2
FOSSEE-netbook-patcher-AudioMic-2.zip
modified patcher.sh and added a new sample fileAudioMic-2
-rw-r--r--opt/61
-rwxr-xr-xpatcher.sh14
2 files changed, 11 insertions, 4 deletions
diff --git a/opt/6 b/opt/6
new file mode 100644
index 0000000..0772218
--- /dev/null
+++ b/opt/6
@@ -0,0 +1 @@
+sixth file
diff --git a/patcher.sh b/patcher.sh
index 4e0a8a4..690c01b 100755
--- a/patcher.sh
+++ b/patcher.sh
@@ -41,9 +41,9 @@ function check_internet() {
#fetch updates from github and show
function format_list_updates() {
#make a local copy for editing
- [ $INET_AVAILABLE -eq 1 ] && git log --format=\;\[%ar\]\;%s\;%h HEAD >\
+ [ $INET_AVAILABLE -eq 1 ] && git log --format=\;\(%ar\)\;%s\;\(%h\) HEAD >\
$all_commits_one_liner_with_date
- for each in $(cat $all_commits_one_liner_with_date | cut -d ';' -f 4)
+ for each in $(cat $all_commits_one_liner_with_date | cut -d ';' -f 4 | tr -d '(|)')
do
files_in_each_commit=$(git show --first-parent --pretty="format:" --name-only $each)
echo $files_in_each_commit | tr ' ' ',' >> $files_in_all_commits
@@ -57,11 +57,16 @@ function format_list_updates() {
#function updates_
-function select_applied_updates() {
+function select_updates() {
#[ -f $past_applied_commits ] && paste $past_applied_commits
- true
+ #menu $(cat $all_commits_dates_with_file_paths)
+ selected_update=$(menu -w 1000 -h 550 "$(cat $all_commits_dates_with_file_paths | \
+ cut -d ';' -f 1,2,3,4| tr ';' ' ' )" 2>&1)
+ echo $selected_update
}
+
+
function clean_up() {
[ -f robots.txt ] && rm robots.txt
@@ -71,4 +76,5 @@ function clean_up() {
#Function calls
check_internet
format_list_updates
+select_updates
clean_up