From 28cb6f2e85d4f110434634b9fc553503e09dbe4e Mon Sep 17 00:00:00 2001 From: Justin Davis Date: Wed, 21 Sep 2011 18:19:03 -0400 Subject: Remove old scripts that are obsolete. --- bin/pbj | 62 -------------------------------------------------------------- 1 file changed, 62 deletions(-) delete mode 100755 bin/pbj (limited to 'bin/pbj') diff --git a/bin/pbj b/bin/pbj deleted file mode 100755 index a8e41df..0000000 --- a/bin/pbj +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh - -VERSION=0.01 - -die() { - echo "error: $*" - exit 1 -} - -pbjtopkg() -{ - pkg=$1 - rm -rf "$pkgroot/$pkg" - mkdir "$pkgroot/$pkg" - cd "$pkgroot/$pkg" - - jamfile="$jamdir/$1.pbj" - if [ ! -f "$jamfile" ] - then - die "$jamfile is missing" - fi - - # Match the pkgname to the .pbj filename. - # Provide values for other things macros won't be able to. - printf "+ pkgname $pkg\n+ pkgrel ${PKGREL:-1}\n+ pbjver $VERSION\n" \ - | cat - "$jamfile" \ - | pbjexpand \ - | awk -f "$bindir/pbjparse.awk" \ - > PKGMETA - - if [ $? -ne 0 ] - then - die "Failed to write $pkgroot/$pkg/PKGMETA" - fi - - # pbjparse.awk also creates a makepb script in our cwd. - if ! ./makepb >PKGBUILD - then - die "makepb failed, error code $?" - fi - - echo "$pkgroot/$pkg/PKGBUILD" -} - -if [ -z "$1" ]; then die "Usage: $0 [package name]"; fi -if [ "$PBJROOT" ]; then cd "$PBJROOT"; fi - -bindir="$(pwd)/bin" -if [ ! -d "$bindir" ]; then die "$bindir does not exist"; fi -PATH="$PATH:$bindir" - -if [ -n "$PKGROOT" ]; then pkgroot="$PKGROOT" -else pkgroot="$(pwd)/pkg" -fi - -if [ ! -d "$pkgroot" ]; then die "$pkgroot does not exist"; fi - -jamdir="$(pwd)/pbj" -if [ ! -d "$jamdir" ]; then die "$jamdir does not exist"; fi - -export PATH="$PATH:$bindir/macros:$bindir/templ" -for pbj; do pbjtopkg "$pbj"; done -- cgit v1.2.3-24-g4f1b