[solved] Perl script for pacman updates in Conky

Hi
I've been using this script in Perl Conky to check on updates. It works well.
It's not mine - I got it here;
http://bbs.archlinux.org/viewtopic.php?id=57291
#!/usr/bin/perl
## script by Xyne
## http://bbs.archlinux.org/viewtopic.php?id=57291
use strict;
use warnings;
my $n = (`pacman -Qu | wc -l`);
chomp ($n);
if ($n == 0)
print "System up to date"
elsif($n == 1)
print "1 new package"
else
print "$n new packages (inc. IgnorePkg) "
I have some packages listed in IgnorePkg in pacman.conf - is there a way to exclude them from the packages counted in $n?
I thought something like this would help but I don't see how to take only part of a line from IgnorePkg
http://www.perlfect.com/articles/perlfile.shtml
Thanks for any help
EDIT I added a --ignore clause to the pacman query. Seems to have worked. Sorry to waste your time.
Last edited by Bazzaah (2012-07-04 09:25:46)

bump...
Edit: Finally figured it out. My router assigns IP adresses dynamically on each reboot. When my IP adress changed from 192.169.1.2 to 192.168.1.3 the hellaconk script got all confused. Ahh...
Last edited by Perre (2009-03-12 18:59:40)

Similar Messages

  • Perl script for xchat doesnt work

    I like to start a perl script for xchat.
    Thats my problem:
    Can't locate Socket.pm in @INC (@INC contains: /usr/lib/perl5/5.8.3/i686-linux /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/i686-linux /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at (eval 3) line 31.
    line 31 is "use Socket;"
    I tried also use IO::Socket; but that changes nothing.
    Anyone knows whats the problem or wich perl-modul isnt on my system?
    btw: sry for the bad english..

    bigh wrote:
    Thats my problem:
    line 31 is "use Socket;"
    I tried also use IO::Socket; but that changes nothing.
    Anyone knows whats the problem or wich perl-modul isnt on my system?
    Hello  bigh,
    Socket and IO::Socket are standard perl modules:
    me@here:~/tmp]$ tar tvzf perl-5.8.4.tar.gz | grep Socket.pm
    -r--r--r-- nwc10/nwc10 11882 2003-08-13 21:55:04 perl-5.8.4/ext/IO/lib/IO/Socket.pm
    -r--r--r-- nwc10/nwc10 9801 2004-04-01 17:58:43 perl-5.8.4/ext/Socket/Socket.pm
    In Arch they should belong to the perl package (i don't have an Arch box at the moment to confirm it more explicitely). So it is strange that neither Socket.pm nor IO/Socket.pm can be found in your @INC on your host.
    Hope it helps anyway

  • Help! I want a perl script for test

    I am not familar with perl and XMLDB.
    The database which managed by other team report the following errors.
    They said the error was caused by the perl scipt which contents a statment using XML object.
    So I want a perl script for test.
    Please help me.
    oracle 9.2.0.3.0
    Alert.log
    ORA-00600: internal error code, arguments: [qmxarElemAt2], [0], [], [], [], [], [], []
    listener.log
    connect_data=(sid=###)(cid=(PROGRAM=perl@###)(USER=oracle)))*(ADDRESS=(PROTOcol=tcp)(host=)
    establish###
    Edited by: 964446 on Oct 10, 2012 6:10 AM

    I can't check on iTunes until tomorrow morning, but in the meantime I can tell you what's wrong with your original feed. The top two lines read
    <?xml version="1.0"?>
    <rss version="2.0">
    They should read
    <?xml version="1.0" encoding="UTF-8"?>
    <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
    Without the itunes URL in the second line iTunes cannot parse the required tags to show your episodes. I would guess that the line was there originally but got removed, after which iTunes would not recognize new episodes. Put it back and reload the feed, and it should work if iTunes hasn't terminated your podcast in the meantime.
    But to answer your original question: assuming you have access to both feeds; copy everything in the original feed from the first <item> to the last </item> near the bottom.
    In the new feed, find the last </item> tag at the bottom (just above the </channel> and </rss> tags), start a new line just after it and insert the material you posted from the original feed (though there are an awful lot of episodes there, and though it's technically not a problem you might want to consider whether you really need all of them in the feed).
    If you don't have direct access to the feeds but are using one of the podcast creation services which don't allow this, you will have to follow whatever method they provide for adding the episodes, possibly one at a time.

  • Creating a Perl script for SAP sytem profile parameter

    Hi,
    I need to create a perl script for all th eprofile parameter to check as a security directive ,so that whenever the system is started it checks for this profile parameter.
    As per my company sap directive ,these are the profile parameter i need to set.
    Can anyone let me know how to write the scripts.
    login/min_password_lng Minimum password length for user password 320 Min.
    8
    login/password_expiration_t
    ime
    Number of days between forced password change. 0 Max.
    35
    login/fails_to_session_end Number of invalid logon attempts allowed before the
    SAP GUI is disconnected.
    3 Max.
    3
    login/fails_to_user_lock Number of invalid logon attempts before the user id is
    automatically locked by the system.
    12 Max.
    6
    rdisp/gui_auto_logout Time, in seconds, that SAPGUI is automatically disconnected
    because of in-activity.
    0 60-
    7200
    21
    auth/test_mode Jump into report RSUSR400 at every authority check N N22
    auth/system_access_check_
    off
    Switch off automatic authority check for special ABAP
    commands
    0 0
    auth/no_check_in_some_ca
    ses
    Special authorization checks turned off by customer.
    Enabling of Profile Generator
    N/Y23 Y
    login/ext_security Security access controlled by external software. N N24
    auth/rfc_authority_check Permission for remote function calls from within ABAP
    programs
    0 1
    login/failed_user_auto_unlo
    ck
    Enable system function for automatic unlock of users
    at midnight. (0 = locks remain)
    0 0
    login/
    no_automatic_user_sapstar
    (as of 3.1h)
    login/no_automatic_user_sa
    p* (prior to 3.1h)
    Disable ability to logon as SAP* with PASS as password
    when SAP* deleted.
    0 125,26
    auth/tcodes_not_checked TCode checking for SU53 & SU56 analysis disabled (empty
    "SU5
    3
    Regards,
    Chetan.

    Here's a simple perl script that should help you get what it is you're looking for - you can add all the parameters you want to search for, I just took a few of them:
    #!/usr/bin/perl -w
    use strict;
    use sapnwrfc;
    SAPNW::Rfc->load_config;
    my $rfc = SAPNW::Rfc->rfc_connect;
    my @parms = (   "login/min_password_lng",
              "login/password_expiration_time",
              "login/fails_to_session_end",
              "login/fails_to_user_lock" );
    for my $x (0 .. $#parms) {
         my $rcc = $rfc->function_lookup("SXPG_PROFILE_PARAMETER_GET");
         my $slr = $rcc->create_function_call;
         $slr->PARAMETER_NAME($parms[$x]);
         $slr->invoke;
         print "Value for $parms[$x] is: ".$slr->PARAMETER_VALUE."\n";
    $rfc->disconnect();
    And running it, you'll get:
    [dhull@397 scripts]$ ./read-profile.pl
    Value for login/min_password_lng is: 7
    Value for login/password_expiration_time is: 90
    Value for login/fails_to_session_end is: 3
    Value for login/fails_to_user_lock is: 6
    [dhull@397 scripts]$
    If you need to get your perl environment read to make RFC calls to your SAP system, check my series of blogs on how to do so here:
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/u/251752730
    Cheers,
    David.

  • Asp or perl script for IIS

    does anyone have a asp or perl script for use on an iis server they can share? I am not worried about pulling creds from any place at this point, just a hard coded user....admin for now thanks.

    Guys,
    I am not the ASP expert ... but isn't it true that in the .NET common runtime that VB.Script and C# are very similar? ... barring language semantics, of course. If so, couldn't you take C# code and turn it into VB.Script? ... or even use C# code outright within ASP?
    The reason I ask is because this thread:
    http://discussions.apple.com/thread.jspa?messageID=2710342&#2710342
    contains a C# example of a transfer CGI suitable for an IIS server ... or, at the very least, it shows an approach to creating one.
    MacBook Pro   Mac OS X (10.4.8)   I lied. I'm running Leopard

  • Problem viewing available pacman updates with conky

    Hi. I'm having problems with showing available package updates in my conky layout. I tried to follow instructions from archwiki https://wiki.archlinux.org/index.php/Co … nformation but none of the scripts seemed to work correctly, but instead they always show 'System is up to date' even though 'pacman -Qu' shows multiple packages available for update.
    Following https://bbs.archlinux.org/viewtopic.php?id=37284 my conky has (I changed 'python' -> 'python2' so script compiles):
    ${texeci 10800 python2 /home/laite/.config/awesome/conky/packages_python.py}
    Actually, I just noticed that last post in that topic seems to have the same problem than me (https://bbs.archlinux.org/viewtopic.php … 74#p863474)
    Does anybody know how to get this working or maybe some other way to show updates in conky? I already tried all the scripts from wiki with no luck.

    Kooothor wrote:https://github.com/kooothor/Scripts/blo … n-conky.sh
    just leavin' this here...
    Thanks
    If somebody wants to know, here is my (very slightly) edited bash script:
    #!/bin/bash
    _pacPackages=$(pacman -Qu | wc -l)
    if [ $_pacPackages -eq 0 ];
    then
    echo "\${color #ffffff}Your system is up to date.";
    elif [ $_pacPackages -eq 1 ];
    then
    echo "\${color #ffaa00}1 new package";
    else
    echo "\${color #ffaa00}$_pacPackages new packages";
    fi
    exit 0
    and conky:
    ${execpi 7200 sh /home/laite/.config/awesome/conky/package.sh}
    Also, I have script updating packages in cron/hourly:
    #!/bin/sh
    pacman -Sy

  • To write a perl script for running a java program from cgi of web server

    I have to write a perl script to call a java program(.exe).I want to run this file through the cgi of the web server.
    java myprogram
    can anyone help me to write a perl script??

    It depends on what the java program does. For example, does it parse HTTP headers from standard input, or what?
    Are you sure it wouldn't be easier to turn the class into a servlet? etc.
    Take a look at IPC::Open2 and IPC::Open3 though. You may need them. (That's just a guess.)

  • [solved]gcc broken after pacman update - libcloog-isl.2.so

    Hi,
    After a pacman update my gcc broke. When compiling it gives this error:
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/cc1: error while loading shared libraries: libcloog-isl.so.2: cannot open shared object file: No such file or directory
    gcc -v output:
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/lto-wrapper
    Target: x86_64-unknown-linux-gnu
    Configured with: /build/src/gcc-4.6-20111223/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --enable-multilib --disable-libssp --disable-libstdcxx-pch --enable-checking=release --with-fpmath=sse
    Thread model: posix
    gcc version 4.6.2 20111223 (prerelease) (GCC)
    and ls /usr/lib/*cloog* output:
    /usr/lib/libcloog-isl.a  /usr/lib/libcloog-isl.so  /usr/lib/libcloog-isl.so.3  /usr/lib/libcloog-isl.so.3.0.0
    uname -a:
    Linux willem-arch 3.2.4-1-ARCH #1 SMP PREEMPT Sat Feb 4 10:53:01 CET 2012 x86_64 Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz GenuineIntel GNU/Linux
    How can I fix this? I already tried installen cloog with pacman but that doesn't help.
    edit:
    I solved the problem. There was an issue with my pacman.conf. Multilib wasn't properly enabled after the pacman4 transition.
    Last edited by pientertje (2012-02-08 09:47:25)

    I'm using multilib.
    @Allan
    more fully than pacman -Syu? Or is my mirror not up to date?
    edit:
    I solved the problem. There was an issue with my pacman.conf. Multilib wasn't properly enabled after the pacman4 transition.
    Last edited by pientertje (2012-02-08 09:46:40)

  • Packup - a simple backup/restore/migration script for Pacman

    I have seen numerous posts on the forums asking for an easy way to backup and restore installed software for purposes of backup, migration or simply for convenience. Packup attempts to fill this void. Simply put, Packup is an ncurses wrapper for Pacman which provides a simple backup/restore/migration system for Arch. Don't believe me? Try it for yourself!

    Mimi wrote:
    Ghost1227 wrote:by default it should be $8 not $9... I'd love to know why yours responds differently.
    ┌─[~]
    └─╼ ls -Bl packup-*
    -rw-r--r-- 1 julia users 2633 2. Jan 18:22 packup-complete-20090102-1821
    ┌─[~]
    └─╼ ls -Bl packup-* | egrep -v '^d' | awk '{ print $8 }'
    18:22
    Maybe the problem is a different date format (de_DE.utf8).
    ┌─[~]
    └─╼ ls -Bl --time-style=iso packup-* | egrep -v '^d' | awk '{ print $8 }'
    packup-complete-20090102-1821
    Good point - added --time-style to the script, should fix that problem...
    Mimi wrote:
    If i select "Run Yaourt" the program exits, i don't know, maybe the exit status of the if condition (if [ $? = 0 ]) overrides the selection?
    ┌─[~]
    └─╼ if [ $? = 1 ]; then echo abcdef; elif [ $? = 1 ]; then echo fedcba; fi
    fedcba
    Or is it just me?
    I think you miscopied something there...
    if [ $? = 1 ]; ... elif [ $? = 1 ]; ...
    it's kinda redundant... shouldn't one of those be =0? or =3? i'm not even sure which function you're referencing.

  • Nice set of perl scripts for h264 encoding stuff

    I have found a nice set of perl script written for flexible h264 related encoding. They were originally developed for gentoo but they also run fine under Debian. I guess running them under arch will work as well.
    Here is the original thread over at the Gentoo Forum:
    http://forums.gentoo.org/viewtopic-t-74 … 444a855600
    Here is the webpage from the author plus a newly build install bash script which will download and install the encoding suite:
    http://blog.fangornsrealm.eu/
    May be someone likes to build a package ?
    I am not using arch this much the last few month. So I am kind of the wrong guy for building such a package
    -D$

    I have found a nice set of perl script written for flexible h264 related encoding. They were originally developed for gentoo but they also run fine under Debian. I guess running them under arch will work as well.
    Here is the original thread over at the Gentoo Forum:
    http://forums.gentoo.org/viewtopic-t-74 … 444a855600
    Here is the webpage from the author plus a newly build install bash script which will download and install the encoding suite:
    http://blog.fangornsrealm.eu/
    May be someone likes to build a package ?
    I am not using arch this much the last few month. So I am kind of the wrong guy for building such a package
    -D$

  • PaCPAN: tool for building Perl packages for Pacman from CPAN

    http://xyne.archlinux.ca/info/pacpan
    *edit*
    Pacpan functionality has evolved as of version 4.0. CPAN distribution and metadata handling has improved and there are now functions which can query installed packages to determine their adherence to the packaging guidelines.
    Building packages with dependency resolution etc has been move to bauerbill, which can now build CPAN packages using standard pacman options, e.g. "bauerbill -S perl-foo-bar" or "bauerbill -S Foo::Bar".
    Last edited by Xyne (2010-02-01 22:00:32)

    Imagine going looking for a perl cpan pacman solution and finding out you wrote one ofc i had to give it a spin
    Works really well but i did run into trouble when installing Spreadsheet::WriteExcel something went wrong with one of the dependencies.
    REQUIREMENTS
        This module requires Perl 5.005 (or later), Parse::RecDescent
        and File::Temp:
    Works fine as long as i removed, 'perl-' from depends=
    [vociferous@avatar ~]$ pacpan Spreadsheet::WriteExcel
    ==> retrieving info for Spreadsheet::WriteExcel
    Use of uninitialized value $module in hash element at /usr/bin/pacpan line 961, <GEN1> line 298.
    Use of uninitialized value $p_dep in string eq at /usr/bin/pacpan line 789, <GEN1> line 298.
    Use of uninitialized value $p_dep in hash element at /usr/bin/pacpan line 790, <GEN1> line 298.
    ==> FOUND: found pkg: File::Temp -> perl
    ==> retrieving info for OLE::Storage_Lite
    ==> FOUND: found pkg: Parse::RecDescent -> perl-parse-recdescent
    Use of uninitialized value in concatenation (.) or string at /usr/bin/pacpan line 546, <GEN1> line 1098.
    Use of uninitialized value $pkgname in concatenation (.) or string at /usr/bin/pacpan line 559, <GEN1> line 1098.
    Use of uninitialized value $pkgver in concatenation (.) or string at /usr/bin/pacpan line 559, <GEN1> line 1098.
    Use of uninitialized value $url in concatenation (.) or string at /usr/bin/pacpan line 559, <GEN1> line 1098.
    Use of uninitialized value $name in concatenation (.) or string at /usr/bin/pacpan line 325, <GEN1> line 1098.
    Use of uninitialized value $ver in concatenation (.) or string at /usr/bin/pacpan line 325, <GEN1> line 1098.
    Use of uninitialized value $name in concatenation (.) or string at /usr/bin/pacpan line 340, <GEN1> line 1098.
    Use of uninitialized value $name in concatenation (.) or string at /usr/bin/pacpan line 340, <GEN1> line 1098.
    Use of uninitialized value $name in concatenation (.) or string at /usr/bin/pacpan line 340, <GEN1> line 1098.
    Use of uninitialized value $name in concatenation (.) or string at /usr/bin/pacpan line 340, <GEN1> line 1098.
    ==> SUCCESS: generated build script: build_cpan
    pacpan Spreadsheet::WriteExcel --get-pkgbuild
    Use of uninitialized value $module in hash element at /usr/bin/pacpan line 961, <GEN1> line 298.
    Use of uninitialized value $p_dep in string eq at /usr/bin/pacpan line 789, <GEN1> line 298.
    Use of uninitialized value $p_dep in hash element at /usr/bin/pacpan line 790, <GEN1> line 298.
    # PKGBUILD generated by pacpan
    pkgname=perl-spreadsheet-writeexcel
    _realname=Spreadsheet-WriteExcel
    pkgver=2.25
    pkgrel=1
    pkgdesc="no description available"
    arch=(i686 x86_64)
    license=('unknown, check site')
    url="http://search.cpan.org/~jmcnamara/Spreadsheet-WriteExcel-2.25/lib/Spreadsheet/WriteExcel.pm"
    depends=('perl' 'perl-parse-recdescent' 'perl-' 'perl-ole-storage_lite')
    options=(!emptydirs)
    #provides=('Spreadsheet-WriteExcel')
    provides=('spreadsheet-writeexcel')
    source=(http://search.cpan.org/CPAN/authors/id/J/JM/JMCNAMARA/Spreadsheet-WriteExcel-2.25.tar.gz)
    md5sums=('ad70e5b031c0af60c50a72d8b09240c9')
    build() {
    cd ${srcdir}/${_realname}-${pkgver}
    # install module in vendor directories.
    PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
    make || return 1
    make install DESTDIR=${pkgdir} || return 1
    # remove perllocal.pod and .packlist
    find ${pkgdir} -name perllocal.pod -delete
    find ${pkgdir} -name .packlist -delete
    # END OF PACPAN PKGBUILD

  • [solved] Suspicious happenings after pacman update

    Hello folks. I did a pacman -Syu not a few a hours ago and now it appears that all Google services appear to be hijacked.
    The offender is what seems to be called creditpuma.com hijack. I google-fu-d and found that only Windows machines are being infected. google.com is being spoofed to redirect me from each search result to a middleman page on every browser (firefox, opera, chrome) that I have installed. gmail, youtube, google accounts, nor google docs resolve. I wasn't aware that this was possible on Linux, though, as I am posting in Newbie Corner, I am not certain. I'm resetting all of my passwords now and preparing to back up my important documents for a full system nuke. What disturbs me is that this happened /right after/ a pacman system update. It was quite an update too, over 200 packages. I don't run any exploit-prone programs, not to my knowledge, I just develop software and browse the internet. No suspicious websites were visited recently.
    Could someone shed some light on how this might have happened? Which files may be affected?
    Thank you and sorry if this post is stupid.
    Last edited by esquesque (2012-02-11 07:09:35)

    esquesque wrote:Thank you for your tips brebs, and I appreciate your skepticism. I probably jumped the gun on that one, and I'm currently working on gathering evidence. It's just that I felt rather emotional at the fact that my invulnerable machine is now vulnerable If this isn't malware then I'm at a loss to what's happening.
    Maybe I'm putting words in his or her mouth, but I don't think brebs was being skeptical about this being malware. I think the skepticism was about whether this is a rootkit.
    Once you tell us whether it's user-specific or affects your whole system, we'll know whether it's a problem with one of the packages, or just something that's been modified in your own user settings.

  • [SOLVED ]makepkg asking for pacman-color binary

    After upgrading pacman to 4.1 I'm getting this error every time I run makepkg:
    /usr/bin/makepkg -s -i
    ==> ERROR: Cannot find the pacman-color binary required for dependency operations.
    Even if I try to use --nocolor:
    /usr/bin/makepkg --nocolor -s -i
    ==> ERROR: Cannot find the pacman-color binary required for dependency operations.
    I've tried enabling and disabling color options in both makepkg.conf and pacman.conf, and the error is still there.
    Any clue on what could be going on and how to solve it?
    Thank you in advance
    Last edited by ethail (2013-04-01 23:01:32)

    echo $PACMAN
    pacman-color
    I guess I've forgotten to edit some file that I changed when using pacman-color-testing from the AUR.
    EDIT: Indeed, I forgot to edit my .zprofile that used to export PACMAN as pacman-color. Solved now
    Thank you, Allan
    Last edited by ethail (2013-04-01 23:02:14)

  • E17 SVN Builder, a new script for pacman to keep your E17 up to date!

    I created a script called E17 SVN Builder because of what it does: create packages of E17 direct from SVN using the same PKGBUILDs as the Arch snapshots do. It came around because I was bitten by the Settings panel bug, which was fixed in upstream a few days after the SVN snapshot was taken. I wanted an up to date E17 install, so I created this script. Do NOT use it if you want your E17 install to be stable(r?)!
    I just thought I would share this script since it works for me. Perhaps people could help me improve it?
    Anyway, the dependancies right now are:
    yaourt-git (I need it to fetch the PKGBUILDs for the images from CVS)
    svn (to fetch the E17 code)
    TODO:
    - I need to get rid of the dependancy on yaourt-git by extracting the code for fetching the PKGBUILDs with it.
    - I want to be able to use flags with this.
    License: GPLv3
    Version: 0.2
    #!/bin/sh
    # * E17-svn-builder *
    # * A script to build E17 directly from SVN *
    # * By smartboyathome *
    VERSION=0.2
    usage(){
    echo 'E17 SVN Builder'
    echo 'This is version '$VERSION
    echo 'For now, this is a very simple script. It will fetch and build the PKGBUILDs for you. It is recommend you create a new directory to run this in, as it will pollute a directory with tons of files and folders.'
    echo '-h, --help; Show this message.'
    while [ "$#" -ne "0" ]; do
    case $1 in
    --help)
    usage
    exit 0
    -h)
    usage
    exit 0
    esac
    done
    buildpkg(){
    echo 'Building '$_E17PKG'...'
    # Check if the package directory exists, and if not, create it.
    if [ -d $_E17PKG ]; then
    cd $_E17PKG
    else
    mkdir $_E17PKG
    cd $_E17PKG
    fi
    # Check if the PKGBUILD exists, and if not, get it.
    if [ -d PKGBUILD ]; then
    yaourt -G $_E17PKG
    else
    mv PKGBUILD PKGBUILD.old
    yaourt -G $_E17PKG
    mv PKGBUILD PKGBUILD.new | mv PKGBUILD.old PKGBUILD
    cmp -s PKGBUILD PKGBUILD.new || mv PKGBUILD.new PKGBUILD
    fi
    makepkg PKGBUILD
    mv *.pkg.tar.gz ../
    cd ../
    # Make sure there aren't any left over environment variables from a previous run or program. This keeps things clean. :)
    unset _EXTRA
    unset _E17PKG
    echo 'Would you like to build the e17-extra-svn packages as well? (y/n)'
    read _EXTRA
    # Remove all packages
    rm *.pkg.tar.gz
    echo 'Beginning to build e17-svn packages...'
    #--- Begin building eina-svn ---
    _E17PKG=eina-svn
    buildpkg
    #--- Begin building eet-svn ---
    _E17PKG=eet-svn
    buildpkg
    #--- Begin building evas-svn ---
    _E17PKG=evas-svn
    buildpkg
    #--- Begin building ecore-svn ---
    _E17PKG=ecore-svn
    buildpkg
    #--- Begin building embryo-svn ---
    _E17PKG=embryo-svn
    buildpkg
    #--- Begin building edje-svn ---
    _E17PKG=edje-svn
    buildpkg
    #--- Begin building e_dbus-svn ---
    _E17PKG=e_dbus-svn
    buildpkg
    #--- Begin building efreet-svn ---
    _E17PKG=efreet-svn
    buildpkg
    #--- Begin building e-svn ---
    _E17PKG=e-svn
    buildpkg
    echo 'Finished building e17-svn packages!'
    if [ $EXTRA="y" ]; then
    echo 'Beginning to build e17-extra-svn packages...'
    #--- Begin building exml-svn ---
    _E17PKG=exml-svn
    buildpkg
    #--- Begin building emprint-svn ---
    _E17PKG=emprint-svn
    buildpkg
    #--- Begin building engrave-svn ---
    _E17PKG=engrave-svn
    buildpkg
    #--- Begin building epsilon-svn ---
    _E17PKG=epsilon-svn
    buildpkg
    #--- Begin building esmart-svn ---
    _E17PKG=esmart-svn
    buildpkg
    #--- Begin building etk-svn ---
    _E17PKG=etk-svn
    buildpkg
    #--- Begin building ewl-svn ---
    _E17PKG=ewl-svn
    buildpkg
    #--- Begin building e-modules-extra-svn ---
    _E17PKG=e-modules-extra-svn
    buildpkg
    #--- Begin building elitaire-svn ---
    _E17PKG=elitaire-svn
    buildpkg
    #--- Begin building entrance-svn ---
    _E17PKG=entrance-svn
    buildpkg
    #--- Begin building exhibit-svn ---
    _E17PKG=exhibit-svn
    buildpkg
    echo 'Finished building e17-extra-svn packages!'
    fi
    echo ''
    echo 'All package building is complete!'
    echo 'It is recommended you restart E17 after installing these packages.'
    echo 'To do this, go to menu > Enlightenment > Restart;'
    echo 'If you cant, then issue this command to restart it:'
    echo 'enlightenment_remote -restart'
    echo ''
    echo 'Have a nice day!'
    # Unsetting our variables so that we aren't messing with anything else. Also keeps things clean. :)
    unset _E17PKG
    unset _EXTRA
    exit 0
    Last edited by smartboyathome (2008-12-21 21:10:47)

    UPDATE! This package has had a couple changes:
    - Repetitive stuff was condensed into one piece of code. Now, its much easier to read.
    - I implemented extra differently. Instead of using a flag (which for some reason always sent me into a loop, I need more practice with scripting ), I just ask the person running the script whether they want to build extra as well as the core e17-svn stuff. Now it doesn't build them all automatically.

  • [solved] speed limit for pacman?

    Is there a way in the configuration to limit the download speed of pacman?
    Been reading the wiki but nothing relevant on that part
    Last edited by akurashy (2009-08-19 22:03:29)

    invictus51: welcome to the boards, please read the Forum Etiquette, particularly around:
    * don't necro-bump http://wiki.archlinux.org/index.php/For … Bumping.27
    * ...and if you do feel compelled to, at least avoid power posting http://wiki.archlinux.org/index.php/For … mpty_Posts
    Closing

Maybe you are looking for

  • UTFDataFormatException and StreamCorruptedException

    We have an applet client that is communicating with a servlet in Apache Tomcat through HttpUrlConnection using ObjectOutputStream / ObjectInputStream. Everything has been working fine, but recently one of our users has had some serious problems with

  • Can I securely wipe the flash memory in the iPhone?

    Hello: Is there any way to SECURELY wipe the free space on the iPhone (ala DOD Wipe or Gutmann). Perhaps through an app or something. I have a program on my laptop that would do it but Windows 7 will not recognize the phone as a drive, only as an att

  • Modify selection data in an infopackage

    Hi: I have to add a field into the data selection to make an initial delta load. When try to check the new field by transaccion RSO2  in my source system they appear all de fields disabled. Do I have to make this modification by other transaccin? Or

  • IPhone 6 saying no Service need help to get it working agian

    still no joy i have been in to a local EE shop and got a new sim card its still saying No Service. what is the wait on a new sim card activation?

  • How to become Authorized Trainer

    Hi all, I am project management consultant and trainer. As part of my job , I train Primavera P6 Professional at various levels. My question is how can I become Oracle Primavera Authorized/ certified trainer? it is must be through Oracle Partner? or