Re: [Slackbuilds-users] Github file name issue

2015-06-01 Thread Thomas Morper
On Sun, 24 May 2015, B Watson wrote: > tar xvf $PRGNAM-$VERSION.tar.gz || tar xvf v$VERSION.tar.gz I still whish Github wouldn't do this, but this workaround is perfectly acceptable. Thanks for the hint! -- ___ SlackBuilds-users mailing list SlackBui

Re: [Slackbuilds-users] Github file name issue

2015-05-25 Thread Philip Lacroix
Am 25.05.2015 16:52 schrieb Ryan P.C. McQuen: I use: if [ -e $CWD/$VERSION.tar.gz ]; then tar xvf $CWD/$VERSION.tar.gz else tar xvf $CWD/$PRGNAM-$VERSION.tar.gz fi So that a 'no such file or directory' warning won't get displayed. Yeah, that's exactly what I've been doing in my scripts as

Re: [Slackbuilds-users] Github file name issue

2015-05-25 Thread Ryan P.C. McQuen
>tar xvf $PRGNAM-$VERSION.tar.gz || tar xvf v$VERSION.tar.gz I use: if [ -e $CWD/$VERSION.tar.gz ]; then tar xvf $CWD/$VERSION.tar.gz else tar xvf $CWD/$PRGNAM-$VERSION.tar.gz fi So that a 'no such file or directory' warning won't get displayed. --- On Mon, May 25, 2015, 1:43 AM Heinz Wies

Re: [Slackbuilds-users] Github file name issue

2015-05-25 Thread Heinz Wiesinger
On Monday 25 May 2015 03:49:16 Thomas Morper wrote: > Hello there, > > A user of one of my SlackBuilds discovered an interesting problem: > > If you follow the download link from the info file, pointing to a release > on Github, you'll end up with different filenames depending on whether you > us

Re: [Slackbuilds-users] Github file name issue

2015-05-24 Thread B Watson
On 5/24/15, Thomas Morper wrote: > What would be a good way to handle this? Editing the SlackBuild script to > handle both names doesn't seem very desirable. tar xvf $PRGNAM-$VERSION.tar.gz || tar xvf v$VERSION.tar.gz Desirable or not, a lot of builds do this now. The only "broken build" prob

[Slackbuilds-users] Github file name issue

2015-05-24 Thread Thomas Morper
Hello there, A user of one of my SlackBuilds discovered an interesting problem: If you follow the download link from the info file, pointing to a release on Github, you'll end up with different filenames depending on whether you use a browser or a tool like 'wget', thanks to a 'Content-Disposit