diff options
author | Srikant Patnaik | 2015-02-07 14:25:10 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-02-07 14:25:10 +0530 |
commit | 73ecbe94c1573bc67ed407ef78166e2f210d139c (patch) | |
tree | b08b265e05e7a4def47d9a409337adbfca19b230 /patcher.sh | |
parent | b182a6878b86fb4d55bd85fa119ecaaf8e2b949c (diff) | |
download | FOSSEE-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
Diffstat (limited to 'patcher.sh')
-rwxr-xr-x | patcher.sh | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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 |