Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
Tweaks to sb
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Tagliamonte committed Jun 5, 2012
1 parent e6d69dc commit f937634
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
*.swp
2 changes: 1 addition & 1 deletion sb
Expand Up @@ -47,7 +47,7 @@ fi
echo "I: Aquiring lock"
echo $$ > $SBUILD/$DIST.lock

CURRENT=$(basename `ls -xl $SBUILD/$DIST | awk '{print $11}'`)
CURRENT=$(readlink $SBUILD/$DIST)
CPUCOUNT=`cat /proc/cpuinfo | grep "^processor" | wc -l`

# We set up the name like:
Expand Down
5 changes: 5 additions & 0 deletions sb-prehook
Expand Up @@ -25,6 +25,11 @@ if [ ! -h $SBUILD/$DIST ]; then
fi

if [ "x$SBUILD_DO_OVERLAY" != "x" ]; then
if [ -h $SBUILD/$DIST.overlay.d ]; then
if [ ! -d `readlink $SBUILD/$DIST.overlay.d` ]; then
mkdir -p `readlink $SBUILD/$DIST.overlay.d`
fi
fi
if [ ! -d $SBUILD/$DIST.overlay.d/$DIST-$VARIANT ]; then
echo "I: Making new overlay."
mkdir -p $SBUILD/$DIST.overlay.d/$DIST-$VARIANT
Expand Down

0 comments on commit f937634

Please sign in to comment.