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.

Similar Messages

  • New Script for PE Tags-- iPhoto keywords

    I haven't tried it yet, but there's a new script for getting your Windows PE tags into iPhoto as keywords. Use the Write Tags to File command in PE first.
    http://scriptbuilders.net/files/iphotoiptckeywordimportexportutilities1.0.html

    Oh, whoops, I just posted this in the Technical forum before I came here. Never sure which one to use.
    This looks like the script a lot of folks were looking for.

  • 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.

  • New Scripts for Bridge posted

    From John Nack's blog: http://blogs.adobe.com/jnack/
    New scripts extend Bridge CS4
    Ever wanted to convert just about any file to JPEG from Bridge, or to attach browsed files to email? Photographer/scripter/Bridge quality engineer David Franzen has your back, having posted a set of great scripts to the Adobe Exchange. He writes:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=productHome&exc=20

    Please post the solution how did you solve and what was the exact issue so that if anyone faces the same problem in future they can easily find answer from your post.
    Regards,
    Lalit Mohan Gupta.

  • Script for automator to names jpegs with incorrect metadata date

    I use Automator to name my images YYYYMMDDHHMMSSname.jpg. Some images have the incorrect time stamp because I forgot to change the camera time while traveling in a different time zone. How do I write a script to correct this?
    G5, dual 2 GHz   Mac OS X (10.4.8)  

    If your camera records EXIF data with each jpeg, then try using EXIF Renamer rather than Automator.
    20 iMac G5, 1.25Gb RAM, 20Gb iPod, iSight   Mac OS X (10.4.8)   Newton 2100, 2000 (upgraded).

  • [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)

  • New ideas for pacman features

    I'd like to start a discussion about pacman and some features I would like to see in it.
    If I compile something with srcpac instead of installing with pacman, it would be nice if pacman remembered that I did so and recompiled the package next time I get an update of it. For instance: I compile my own (beyond) kernel, so I have to compile the kernel modules I use too. It would be nice if it could happen automatically: the kernel modules already get updated with the new kernel, so it would be just a matter of remembering that I like to compile these packages.
    srcpac already supports the automatic alteration of a PKGBUILD, but it would be nice to have a more systematic approach like the make.conf file on a BSD system. This would make it easier to compile some packages with other than the default options of the PKGBUILD. The current grep method is too heavily depending on the format of the PKGBUILD and fails when the maintainer changes the PKGBUILD.
    What are your ideas/opinions?

    Dusty wrote:This sounds more like a srcpac feature than a pacman feature. Srcpac isn't an official part of Arch Linux, so integrating anything into pacman isn't likely to happen.
    Why should these programs be separated? I think it would be wonderful to have one package manager where you can choose what to compile and what to take from binary packages. While I like binary packages, now and again there are packages I have to compile and it would be nice if it could be done automatically. makepkg and srcpac are fine for installing these packages, but not when updating the system. An easier and more robust approach to changing PKGBUILDS automatically by using variables that can be defined in a BSD-like make.conf file would be great.

  • A few q's before I build a new PC for my parents

    Ok, i'm going to be building a PC for my parents (they are using a celeron 466 hehe:) ) and I might go AMD for the mobo/processor, for two reasons.
    1. AMD is cheaper, by comparison
    2. I wanna play with an AMD processor
    Now, from what i've been reading, and hearsay, AMD is picky, and overheating can be a problem? Also, powersupply would be the one provided with the case, which is rated at 400w (AXIO Scorpio (Blue) Mid Tower w/400 watt P.S. & Front USB2.0 $79.00 CAD)
    So, is that ok. Also, any other problems I might run into, I want to put in a XP 2600+ 333FSB, and the mobo would be a K7N2DELTA-L MSI 6570-020 400FSB 8XAGP
    Oh yeah, if I do all this, I might have to switch PC's with my mom, it's getting to be better than mine :P

    Quote
    Originally posted by IronCatt
    A quick Google reveals nothing about AXIO power supplies, which is not a good sign. Try for a case without a PSU and get an Antec or an Enermax.
    You also have to be careful with RAM; that's where the nForce2 chipset is most picky. El cheapo stuff will often (not always) cause problems.
    You don't say where in Canada you are.
    I'm from Nova Scotia, and thanks for the heads up on AXIO.
    The PSU that I use with mine is generic, 300WATT that came with the case, and it works fine here, and hopefully with them it will too.
    And as for RAM, great, just great. What are some brands that do work and ones that I should watch out for?

  • Why does the new update for Numbers app keep crashing when I try to edit old spreadsheet or build new one??

    hi there my numbers appp keeps crashing when i edit spreadsheets? I tried unistall and reinstall but this didnt fix it, i also signed into iclud and looked for blank spreadsheets as this was recommended on another site.

    hi there my numbers appp keeps crashing when i edit spreadsheets? I tried unistall and reinstall but this didnt fix it, i also signed into iclud and looked for blank spreadsheets as this was recommended on another site.

  • New HD for MacBook... How To Backup Data?

    I just bought a 160gb Hitachi drive from OWC for my MacBook. Can anyone give me step by step directions on how to backup my current drive and how do I migrate this data on the new HD? I know how to physically install it but I want to make sure I back it up alright. I've heard about using SuperDuper, but what do I do with that program and how do I migrate?
    Thanks
    -B-

    No, I don't have 2 gigs of RAM but as soon as I get the money I will upgrade from OWC! I have found that website (http://www.macsales.com) to be very reliable, quick and they have the lowest prices out there for the highest quality of products.
    I searched around the internet to find out which was the best HD to get and what speeds, etc, and I found most went with Hitachi's 160G Travelstar drive. I know I read about many people having issues with Western Digital's model (sudden motion sensor, kernel panics, etc) so even though it was cheaper I knew that was the wrong way to go just by reading people's comments online. I suggest everyone else do the same thing. Do your research, both online and off, and find out what most people are having successes with (and asking on this board is what helped me, too!)
    Once I get my increased RAM, then we will officially be twins. lol.
    Thanks for your response...
    I'm lovin this new drive. I've got my 40 gigs of music on here, my 10,000 photos, all my apps, and I still have like 85 gigs left. Shweet! With the stock 80gb drive, I was already in my teens in HD space!
    -B-

  • When merging data into a PDF form, can it create a new form for every record in your data set?

    I have a vendor database that I want to use to populate a pre-created PDF form in Adobe Pro XI. I figured out how to rename the form data fields and how import the data from my data set but can't figure out how to have it create another copy of the form for the next record in the data set.... if its even possible. Any help is appreciated!

    This can be achieved with a mail-merge type script.

  • After the decision I builde the new computer and wants to hear your opinion

    Hello frinds
    3 weeks ago I asked a question about my existing computer and all of you and also Harm told me that i have a slow computer and i have to think about new one.
    so...... this is my setup and i want to ask you befor buy all parts:
    1. Intel Core i7-930 Bloomfield 2.8GHz LGA 1366
    2. ASUS P6T Deluxe V2 LGA 1366 Intel X58 ATX Intel Motherboard
    3. Western Digital VelociRaptor WD1500HLFS 150GB 10000 RPM SATA 3.0Gb/s 3.5" Internal Hard Drive
    4. CORSAIR XMS3 12GB (6 x 2GB) 240-Pin DDR3 SDRAM DDR3 1600
    5. CORSAIR TX Series CMPSU-950TX 950W ATX12V v2.3 80 PLUS BRONZE Certified Active PFC Power Supply
    6. XCLIO Windtunnel Fully Black Finish 1.0 mm SECC Chassis ATX Full Tower Computer Case
    7. GIGABYTE GV-N460OC-1GI GeForce GTX 460 (Fermi) 1GB 256-bit Video Card.
    8. CORSAIR Cooling Hydro Series CWCH50-1 120mm High Performance CPU Cooler
    Thanks for opinion.
    Nir.

    Doh bootcamp vs Hack.. sorry i was just reading another thread(forum) about hackintosh. bootcamp is of course legal
    so show me the light...?
    so lets see
    an Apple is a PC
    your running Windows on the Apple
    so do tell whats the difference from the Apple hardware vs a windows system?
    lets see
    DDR3 1600 (PC)
    DDR3 1066 ECC Apple
    Apple
    no PCI slots (not really important much anymore but there are still many with PCI cards)
    only 3 PCIe. for video it should not matter much. 1 raid card i capture device 1 Pro audio interface
    PC has more of both.
    Price Apple is far more.
    other than that they are both PCs with a differnt OS (but you negated that with bootcamp)
    now to windows on the Apple bootcamp is not without issues still cant turn off Cstate issues.
    i didnt bother to benchmark an Apple vs PC with Adobe. (other than in house results not a publishable report)
    and FC runs better on the older MP (08) than Nehalem.
    one of my friends in the Audio biz has however for audio and the results for audio vs video are pretty much the same
    http://www.dawbench.com/win7-v-osx-1.htm
    next Apple i have on the bench i will try to run up a test (doesnt happen much anymore as we recommend a PC over Apple)
    Scott
    ADK

  • I bought a new iPad for my wife and want to move the data from my iPad to the new one and clear my old one for her.

    How do I back up all data on my iPad 2 & restore it to a new iPad 3?

    Have a read at my comments on this link - https://discussions.apple.com/message/18857075#18857075
    Not too sure what your post heading is saying!!!

  • PowerShell Script to get the details Like Scope,Last Deployed date and Name for a Solution Deployed in the Farm.

    Hi Experts,
    I am trying to  build a PowerShell Script to get the details Like Scope,Last Deployed date and Name for a Solution Deployed in the Farm.
    Can anyone advise on this please.
    Regards

    Get-SPSolution|Select Name,Scope,LastOperationResult,LastOperationEndTime|Export-CSV "SPInstalledSolutions.csv" -NoTypeInformation
    SPSolution properties
    Get-SPSolution
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • New PC For CS6

    Hello everyone
    I want to Build a new PC For Pr & Ae
    What is your suggestion?
    Chassis: Zalman Z9 Plus
    PSU: Corsair Pro Gold AX750
    M.B: MSI Z68A-GD55
    CPU: Intel i7 2700K
    Cooler: Antec 620
    RAM: 4 x 4 GB 1600
    GPU: Asus GTX 670
    SSD: OCZ Vertex 4 128 GB
    HDD: WD 1 TB
    Your help is greatly appreciated.

    I have many questions about the most effiecent PC for Adobe Premiere, so instead of starting a new thread I will post them here.
    First thing first, I need to know abou the CPU - Processors.
    What is the best processor for the rendering job out there ? I mean, what's the difference betweem many cores (physical), Hyperthreaded(cores) or just high frequency ? For example, if I buy the best 6core AMD (6 native cores + 6 threads), what makes it better or worse choice of buying an Intel quadcore (eg i7 920).
    Cores vs MHz ?
    Alternative way: CUDA Rendering. Yes, I've seen how amazing things can be done using the CUDA cores of NVIDIA cards. I used to own an GTX465 until it fried. Too much renderin (imagine about 6 months projects) almost every time about 4-5 hours rendering each day, and then the card is proven to be dead Well, dead=malfunctioning, too many artifacts, random freezes, etc.
    So, should I buy a $500 expensive CPU or a $500 Kepler GPU ?
    Secondly, I prefer using an SSD for the operating system and program files. I think 256GB is a MUST (at least 128 - no less!!!).
    Although, I want your opinion about Green internal 7200RPM Western Digital hard disks ? I've heard that lot's of them are quite buggy under pressure, and rendering (writing and reading all the time under heavy pressure) is a nasty thing. So, should I buy a 120 Euro Green or an 210 Euro Caviar Black (5 years warranty) ?  What brandname do you trust the most ? I am asking that because lot's of WD died recently at my work (I am working as Computer Service technician).
    Third part: I want to talk about the RAM modules. What do you guys prefer here ? Capacity or speed ? Maybe a little bit of both would be the best answer, but suppose I don't have 400$ to spent for a decent kit of 16GB running at 2000MHz.
    Last but not least, are there any settings that MUST be done for Adobe Premiere ? I mean, should I adjust the pagefile (I have 16GB RAM), or anything else ? Should I disable indexing at hardtrive or any prefetching services ?
    Thanks and sorry for the long story post

Maybe you are looking for