Skip to content

Commit

Permalink
added ebuild_debug (script to reduce debuging ebuilds)
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.tuxfamily.org/svnroot/proaudio/proaudio/trunk/overlays/proaudio@580 d5c9a09b-2911-0410-9af3-a98ebd2cfc69
  • Loading branch information
evermind committed Mar 9, 2007
1 parent 5121ceb commit 5a49c29
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 4 deletions.
7 changes: 7 additions & 0 deletions 00-DETAILED-PACKAGES-LIST
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@
Homepage: http://home.gna.org/lv2dynparam/


#------- media-libs/oscpack --------
oscpack-1.0.2 arch: amd64 ppc sparcs x86
Description: Set of C++ classes for packing and unpacking
OSC packets
Homepage: http://www.audiomulch.com/~rossb/code/oscpack


#------- media-libs/phat --------
phat-0.3.1 arch: amd64 ppc sparc x86
phat-0.4.0 arch: amd64 ppc sparc x86
Expand Down
5 changes: 1 addition & 4 deletions convert_live_keywords
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#!/bin/bash
# (c) 2007 Frieder Bürzele
# licence gnu gpl v2
# this script includes some smaller scripts which cleans the repository a bit
# and remove unneeded files


# exit script it not executed in overlay root
# exit script if not executed in overlay root
if [ ! -e .svn/text-base/generate-detailed-packages-list.svn-base ] ;then
echo "please execute this script just inside the overlay root"
exit 1
Expand Down
61 changes: 61 additions & 0 deletions ebuild_debug
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#!/bin/bash
# (c) 2007 Frieder Bürzele
# licence gnu gpl v2
# Descrition:
# it's basically a wrapper around ebuild which also is useful
# if you've just modified the ebuild a bit and won't want to
# recompile the whole pkg
# (the magic here is just to change the time of the pkg's WORKDIR)
# Usage:
# same as just the ebuild command
# it's to best place a symlink into /usr/local/bin/ to run this script
# eg ln -s `pwd`/ebuild_debug /usr/local/bin/


# get category
get_cat() {
# go to dirs down (get the root_path for the tree)
local lCAT_ONLY="${PWD%/*}"
local lROOT_DIR="${lCAT_ONLY%/*}"
local lCATEGORY="${lCAT_ONLY/${lROOT_DIR}}"
echo $lCATEGORY
}

get_ebuild_name() {
for i in ${args[@]};do
if [[ "$i" = *.ebuild* ]];then
local lEBUILD="$i"
lEBUILD="${lEBUILD##*/}"
break
fi
done
echo "${lEBUILD/.ebuild/}"
}

# programm flow

# launch ebuild binary
ebuild $@
[ "$?" != "0" ] && exit 1

args=("$@")

. /etc/make.conf
[ -z "$PORTAGE_TMPDIR" ] && PORTAGE_TMPDIR="/var/tmp"

CATEGORY="$(get_cat)"
EBUILD_NAME="$(get_ebuild_name)"
if [ -z "$CATEGORY" -o -z "$EBUILD_NAME" ];then
echo "ERROR: could not determine CATEGORY or EBUILD_NAME"
echo -e "CATEGORY was: \"$CATEGORY\""
echo -e "EBUILD_NAME was: \"$EBUILD_NAME\""
exit 1
fi

# working_dir to touch
gTOUCH_WORKDIR="${PORTAGE_TMPDIR}/portage${CATEGORY}/${EBUILD_NAME}/work"
if [ -e "$gTOUCH_WORKDIR" ] ;then
touch $gTOUCH_WORKDIR
else
echo -e "could not change mtime as \"$gTOUCH_WORKDIR\" does not exist"
fi

0 comments on commit 5a49c29

Please sign in to comment.