partially fails when called with relative $0
authorasano
Sat, 18 Dec 2010 15:36:55 +0900
changeset 51 c9fb140f0121
parent 50 ca18a6972cfd
child 52 5e9a417f541f
partially fails when called with relative $0
build-g11n-spec.sh
--- a/build-g11n-spec.sh	Thu Dec 16 17:14:49 2010 +0900
+++ b/build-g11n-spec.sh	Sat Dec 18 15:36:55 2010 +0900
@@ -87,12 +87,11 @@
 pkgrepo create --version 3 "$PKGBUILD_SRC_IPS_SERVER"
 pkgrepo set -s "$PKGBUILD_SRC_IPS_SERVER" publisher/prefix=${PUBLISHER}
 
-G11NDIR=$(dirname $0)
 for spec in $SPECFILES
 do
     case $spec in
     cmdassist.spec )
-        cd $G11NDIR
+        cd $TOPDIR
         cp cmdassist/COPYING cmdassist/cmdassist.copyright
         VERSION=`egrep "^Version:" cmdassist/cmdassist.spec | awk '{print $2}'`
         mv cmdassist cmdassist-${VERSION}
@@ -101,12 +100,12 @@
         dir=cmdassist-${VERSION}
         ;;
     icu.spec )
-        cd $G11NDIR/icu
+        cd $TOPDIR/icu
         /usr/bin/tar cf - old_libs | /usr/bin/gzip > old_libs.tar.gz
         dir=icu
         ;;
     idnkit.spec )
-        cd $G11NDIR/idn
+        cd $TOPDIR/idn
         /usr/bin/tar cf - sunothers | /usr/bin/gzip > sunothers.tar.gz
         /usr/bin/tar cf - idnconv | /usr/bin/gzip > idnconv.tar.gz
         dir=idn