Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Upgrade Gentoo script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  

What do you think?
Cool
16%
 16%  [ 1 ]
Utter rubish
16%
 16%  [ 1 ]
Meh
66%
 66%  [ 4 ]
Total Votes : 6

Author Message
sidusnare
n00b
n00b


Joined: 15 May 2015
Posts: 1
Location: Atlanta, Georgia, USA

PostPosted: Fri May 15, 2015 9:40 pm    Post subject: Upgrade Gentoo script Reply with quote

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
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sat May 16, 2015 7:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1480

PostPosted: Mon May 18, 2015 12:32 am    Post subject: Reply with quote

@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
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Mon May 18, 2015 2:32 am    Post subject: Reply with quote

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
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Mon May 18, 2015 9:20 am    Post subject: Reply with quote

ulenrich wrote:
Where is...

Here.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum