update make-ipkg-dir.sh in whiterussian
authorFelix Fietkau <nbd@openwrt.org>
Sat, 22 Oct 2005 12:35:22 +0000 (12:35 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 22 Oct 2005 12:35:22 +0000 (12:35 +0000)
SVN-Revision: 2233

openwrt/scripts/make-ipkg-dir.sh

index 5225c3448dbd47e5b61230db74247ee426640fbf..7e80f91a06f3708c87bac0920762803b828e3e97 100755 (executable)
@@ -5,12 +5,14 @@ CONTROL=$2
 VERSION=$3
 ARCH=$4
 
+WD=$(pwd)
+
 mkdir -p "$TARGET/CONTROL"
 grep '^[^(Version|Architecture)]' "$CONTROL" > "$TARGET/CONTROL/control"
 grep '^Maintainer' "$CONTROL" 2>&1 >/dev/null || \
         echo "Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>" >> "$TARGET/CONTROL/control"
 grep '^Source' "$CONTROL" 2>&1 >/dev/null || {
-        pkgbase=$(pwd | sed -e "s|^$TOPDIR/||g")
+        pkgbase=$(echo "$WD" | sed -e "s|^$TOPDIR/||g")
         [ "$pkgbase" = "$WD" ] && src="N/A" || src="$BASE/$pkgbase"
         echo "Source: $src" >> "$TARGET/CONTROL/control"
 }