2 BASE
=http
://svn.openwrt.org
/openwrt
/trunk
/openwrt
8 mkdir
-p "$TARGET/CONTROL"
9 grep '^[^(Version|Architecture)]' "$CONTROL" > "$TARGET/CONTROL/control"
10 grep '^Maintainer' "$CONTROL" 2>&1 >/dev
/null || \
11 echo "Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>" >> "$TARGET/CONTROL/control"
12 grep '^Source' "$CONTROL" 2>&1 >/dev
/null ||
{
13 pkgbase
=$
(pwd |
sed -e "s|^$TOPDIR/||g")
14 [ "$pkgbase" = "$WD" ] && src
="N/A" || src
="$BASE/$pkgbase"
15 echo "Source: $src" >> "$TARGET/CONTROL/control"
17 echo "Version: $VERSION" >> "$TARGET/CONTROL/control"
18 echo "Architecture: $ARCH" >> "$TARGET/CONTROL/control"
19 chmod 644 "$TARGET/CONTROL/control"
This page took 0.0427 seconds and 5 git commands to generate.