View previous topic :: View next topic |
What do you think? |
Cool |
|
16% |
[ 1 ] |
Utter rubish |
|
16% |
[ 1 ] |
Meh |
|
66% |
[ 4 ] |
|
Total Votes : 6 |
|
Author |
Message |
sidusnare n00b

Joined: 15 May 2015 Posts: 1 Location: Atlanta, Georgia, USA
|
Posted: Fri May 15, 2015 9:40 pm Post subject: Upgrade Gentoo script |
|
|
I have a script that I wrote, it evolved from a script to try and brute force upgrades while unattended into a script that I use to do Continuous Integration on a daily basis.
There are probably many scripts like it, but this one is mine.
I thought I would share to help those interested and get feed back:
GitHub: https://github.com/sidusnare/ug |
|
Back to top |
|
 |
steveL Watchman

Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Sat May 16, 2015 7:04 pm Post subject: |
|
|
I recommend you /join #bash on IRC: chat.freenode.net and ask for a code review.
They'll explain everything in patient detail, so long as you read the urls they give you before asking the next question. |
|
Back to top |
|
 |
ulenrich Veteran

Joined: 10 Oct 2010 Posts: 1483
|
Posted: Mon May 18, 2015 12:32 am Post subject: |
|
|
@sidusnare
Where is the chance to see the Changelogs for Gentoo revisions especially? For example if there only is a gcc-5 patch I don't update the software, because I use a stable toolchain for my personal Gentoo~unstable 'distribution'. Thus gcc-5 is not an issue for me at the moment. Where can I adapt new USE flags if they pop up with new releases of applications? Also: if there is a new mainNumber.Zero release I prefer to stabilize the software for the time being.... |
|
Back to top |
|
 |
krinn Watchman


Joined: 02 May 2003 Posts: 7471
|
Posted: Mon May 18, 2015 2:32 am Post subject: |
|
|
Code: | 24: if [ "$EUID" -gt 0 ];then
25: echo "This script must be run as root" >&2
179: rm -f /tmp/revdep-rebuild.*/* &>> /dev/null |
Code: | user_that_fuck_you@yourcomputer> cd /tmp
user_that_fuck_you@yourcomputer> ln -s / revdep-rebuild.1
|
Good luck next you run your script  |
|
Back to top |
|
 |
steveL Watchman

Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Mon May 18, 2015 9:20 am Post subject: |
|
|
ulenrich wrote: | Where is... |
Here. |
|
Back to top |
|
 |
|