FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 07-01-2008, 06:27 PM
Nagy Gabor
 
Default Use $PKGEXT (from /etc/makepkg.conf) in bacman

>From c86b422e4e56b12fe664d09e60883ae9304a843b Mon Sep 17 00:00:00 2001
From: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Date: Tue, 1 Jul 2008 20:23:20 +0200
Subject: [PATCH] Use $PKGEXT (from /etc/makepkg.conf) in bacman

Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
---
contrib/bacman | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/contrib/bacman b/contrib/bacman
index 410482f..5a93687 100755
--- a/contrib/bacman
+++ b/contrib/bacman
@@ -87,6 +87,7 @@ fi

pkg_arch=${CARCH:-'unknown'}
pkg_dest="${PKGDEST:-$PWD}"
+pkg_ext=${PKGEXT:-'.pkg.tar.gz'}
pkg_pkger=${PACKAGER:-'Unknown Packager'}

pkg_name="$1"
@@ -265,7 +266,7 @@ chmod 644 $work_dir/{.PKGINFO,.CHANGELOG,.INSTALL} 2> /dev/null
echo "Generating the package..."

ret=0
-bsdtar -czf "$pkg_dest/$pkg_namver-$pkg_arch.tar.gz" $(ls -A) || ret=$?
+bsdtar -czf "$pkg_dest/$pkg_namver-$pkg_arch$pkg_ext" $(ls -A) || ret=$?
if [ $ret -ne 0 ]; then
echo "ERROR: unable to write package to $pkg_dest"
echo " Maybe the disk is full or you do not have write access"
--
1.5.6.1


_______________________________________________
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev
 
Old 07-02-2008, 01:44 AM
Allan McRae
 
Default Use $PKGEXT (from /etc/makepkg.conf) in bacman

Nagy Gabor wrote:
>
>
> -bsdtar -czf "$pkg_dest/$pkg_namver-$pkg_arch.tar.gz" $(ls -A) || ret=$?
> +bsdtar -czf "$pkg_dest/$pkg_namver-$pkg_arch$pkg_ext" $(ls -A) || ret=$?
>

Wow. I tested this script many, many times and I can't believe I missed
that!



_______________________________________________
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev
 

Thread Tools




All times are GMT. The time now is 02:55 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org