Advertisement
Necrose99

ebuilder-batch bin builder toy

Oct 28th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.47 KB | None | 0 0
  1. #!/bin/sh
  2. #./bgebuildr to run in background
  3.  
  4. nohup ./ebuildr > /dev/null 2>&1 &
  5.  
  6.  
  7. %################## next
  8. #!/bin/sh
  9. #ebuildr
  10. LIST=$(mktemp);
  11.  
  12. emerge -puDN --color=n --columns --quiet=y world | awk '{print $2}' > ${LIST};
  13.  
  14. for PACKAGE in $(cat ${LIST});
  15. do
  16.   printf "Building binary package for ${PACKAGE}... "
  17.   emerge -uN --quiet-build --quiet=y --buildpkgonly ${PACKAGE};
  18.   if [[ $? -eq 0 ]];
  19.   then
  20.     echo "ok";
  21.   else
  22.     echo "failed";
  23.   fi
  24. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement