MrRockchip

couch potato

May 1st, 2024 (edited)
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. FIRST OF ALL:
  2. git clone https://review.coreboot.org/coreboot
  3. cd ./coreboot/
  4. git submodule update --init --checkout
  5. git log 5e8e911b7caee021faff96c4e82a77a42544ea62..HEAD --format="%H" --reverse > ~/couch-potato-log.txt
  6.  
  7. #!/bin/sh
  8. touch "./../shits.txt"
  9. for i in {1..1217}; do
  10. commit_id=$(awk -v awk_var="$i" 'NR == awk_var {print $4}' ./../restore_kgpe2.sh)
  11. commit_msg=$(git show --pretty=format:%s --no-patch $commit_id)
  12. line_res=$(awk -v awk_var="$i" 'NR == awk_var {print}' ./../restore_kgpe2.sh)
  13. echo "$line_res $commit_msg" >> "./../shits.txt"
  14. done
  15.  
  16. ###
  17. ### git revert --no-edit 96ac0224ab1099067449a9927127306fc21d2c56 # 10150 # GRF # pci: Add support for assigning resources to SR-IOV VF BARs
  18. ### git revert --no-edit dbcfa67c2888666bca5a06b37bdafc585fd5fbf6 # 9325 # CBF # device/pci_device: Move PCI Option ROM code into pci_rom.c
  19. ###
  20.  
  21.  
  22. #!/bin/sh
  23. i=7153
  24. my_limit=$(wc -l < ~/couch-potato-log.txt)
  25. sed -i "s/^git reset --hard/# git reset --hard/g" ~/restore_agesa.sh
  26. while [ $i -le $my_limit ]; do
  27. out=$(sed -sn $i\p ~/couch-potato-log.txt)
  28. git reset --hard $out
  29. res=$(~/restore_agesa.sh 2>&1 )
  30. case "$res" in
  31. *"revert failed"*)
  32. echo "$out - BAD"
  33. # commit=$(git log -n 1 --format="%s" $out)
  34. sed -i "1s/^/git revert --no-edit $out # $i # GRF #\n/" ~/restore_agesa.sh
  35. ;;
  36. *)
  37. echo "$out - GOOD"
  38. ;;
  39. esac
  40. i=$((i+1))
  41. done
  42.  
  43.  
Advertisement
Add Comment
Please, Sign In to add comment