RSS
 

git export like svn export

12 Apr

Some code i wrote to do git export like svn export.

#!/bin/bash
######################################################################
# Simple script that will export a git version similar to svn export #
# Created 07/18/2012 by Edward Mann edmann.com                       #
######################################################################
GIT=`which git`
TAR=`which tar`
######################################################################
# Don't change the below, unless you know what you are doing.        #
######################################################################
REMOTE=$1
TREE=$2
DIR=$3

RED='\e[1;31m'
BLUE='\e[1;34m'

#
# Check that our git executable is present and
# also that we have a good tar executable
#
checkSetup() {
    echo -e "${BLUE}Checking setup..."
    if [ ! -x ${GIT} ];
        then
            echo -e "${RED}The path i have set for the git executables is either wrong or not executable!"
            exit 1
    fi
    
    if [ ! -x ${TAR} ]
        then
            echo -e "${RED}The path i have set for the tar executables is either wrong or not executable!"
            exit 1
    fi
if [ "${REMOTE}" == "" ] || [ "${TREE}" == "" ] || [ "${DIR}" == "" ];
then    
    showUsage
    exit 1
fi
    
}
showUsage(){
    echo "Usage:"
    echo "git-export <repo> <tree> <dir>"
    echo "<repo>: Source to create export from."
    echo "<tree>: The tree or commit to produce an export for."
    echo "<dir>: The directory to store the export into."
}
#
# Check that our directory does not exist. I don't want to remove the directory or overwrite the
# directory. This will hopefully prevent someone from destroying a directory acidentally.
#
checkDir(){
    if [ -d ${DIR} ]
        then
            echo -e "${RED}The directory '${DIR}' exists, please remove the directory first."
            exit 1
        else
            echo -e "${BLUE}Creating directory '${DIR}'..."
            mkdir ${DIR}
        fi
}
doExport(){
    echo -e "${BLUE}Running Export..."
    `${GIT} archive --format=tar --remote=${REMOTE} ${TREE} | (cd ${DIR} && ${TAR} -xf -)`
}
    checkSetup
    checkDir
    doExport

 
0 comments

Posted ed_mann in Open Source

 

Torture Developer and Being a Better Developer

05 Apr

Here are two articles i have found that are intersting to me.

The first on is 16 ways to torture a developer. My current boss Mark Valentine has been great at letting me use what i need to get the job done. He has been a great boss over the years. (Thanks Mark for not sticking me with Windows.)

The second article is from the same site and it's 10 steps to becoming the developer everyone wants. Looks like i have a few down, and a few i could work on.

Well that's all for now. I have some documentation to write, and i see someone is wanting Fedora 19 rpms for Enlightenment. Speaking of Enlightenment a new release is in the works (so i have read) so new packages should be out soon. This has grown since the last time i built it. I have included many more modules and also the python bindings. I will see how i can update the build process. It was kinda automated, however with the bindings and modules i have 3 different ways now. :-D It will get figured out.

 
0 comments

Posted ed_mann in Open Source

 

Enlightenment Python Bindings in yum repo

03 Apr

Today i have built the following python bindings for Enlightenment

  1. python-ecore
  2. python-e_dbus
  3. python-edje
  4. python-elementary
  5. python-emotion
  6. python-ethumb
  7. python-evas

I also built econnman and connman to go with it. You can now install econnman and it should pull in all dependencies. I have not tested this, and i did obsolete NetworkManager in my connman package. I am not sure if this is the correct thing to do, however you can't have both NetworkManager and connman managing the same interfaces. Well at least when i tried it on my machine i lost all connections.

Also note that i have not thoroughly tested econnman and connman. I was able to get it up and running and see the connections, but i have other work to do so i left it at that. I hope you guys that use this repo can help me test econnman and provide feedback. I appreciate everyone that took the time to comment on things that were not working and to make me aware of issues. I look forward to the next release being better and solving problems that were encountered.

Fedora 17 Repo RPM

Fedora 18 Repo RPM

As always let me know of any issues.

 
8 comments

Posted ed_mann in Open Source

 

Enlightenment Terminology 0.3.0 Fedora rpm

25 Mar

I just uploaded the new terminology 0.3.0 release. This adds in the "tabs" feature. I have been missing this in terminology as i have become familiar with it in gnome-terminal. Also below you will find a video that was prepared to show some features of terminology 0.3.0.

As always enjoy and let me know if you have any issues in the comment section below.

Fedora 17 and 18 builds are on my yum repo. 18 has both x86_64 and i686 builds.

 
10 comments

Posted ed_mann in Open Source