[Pkg-octave-commit] r1306 - octave-pkg-dev/trunk
Rafael Laboissiere
rafael at alioth.debian.org
Wed Feb 27 22:30:21 UTC 2008
Author: rafael
Date: 2008-02-27 22:30:21 +0000 (Wed, 27 Feb 2008)
New Revision: 1306
Modified:
octave-pkg-dev/trunk/octave-pkg-dev.mk.in
Log:
Removed bashism
Modified: octave-pkg-dev/trunk/octave-pkg-dev.mk.in
===================================================================
--- octave-pkg-dev/trunk/octave-pkg-dev.mk.in 2008-02-27 22:21:38 UTC (rev 1305)
+++ octave-pkg-dev/trunk/octave-pkg-dev.mk.in 2008-02-27 22:30:21 UTC (rev 1306)
@@ -53,13 +53,12 @@
.PHONY: make-orig-tarball
make-orig-tarball: get-orig-source
- @tarball=$(shell ls *.tar.gz | grep -v .orig.tar.gz \
- | tail -n1) ; \
- pkgver=$${tarball/.tar.gz/} ; \
- ver=$${pkgver/*-/} ; \
- dir=$(package)-$$ver ; \
- rm -rf $$dir ; \
- mkdir $$dir ; \
- cp $$tarball $$dir ; \
- tar cfz $(package)_$$ver.orig.tar.gz $$dir ; \
+ @tarball=$$( ls *.tar.gz | grep -v .orig.tar.gz | tail -n1 ) ; \
+ pkgver=$$( echo $$tarball | sed 's/.tar.gz//') ; \
+ ver=$$( echo $$pkgver | sed 's/.*-//' ) ; \
+ dir=$(package)-$$ver ; \
+ rm -rf $$dir ; \
+ mkdir $$dir ; \
+ cp $$tarball $$dir ; \
+ tar cfz $(package)_$$ver.orig.tar.gz $$dir ; \
rm -rf $$dir
More information about the Pkg-octave-commit
mailing list