Changeset 2209


Ignore:
Timestamp:
2005-10-21T19:20:24+02:00 (11 years ago)
Author:
nbd
Message:

update make-ipkg-dir.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/scripts/make-ipkg-dir.sh

    r307 r2209  
    11#!/bin/bash 
     2BASE=http://svn.openwrt.org/openwrt/trunk/openwrt 
    23TARGET=$1 
    34CONTROL=$2 
     
    78mkdir -p "$TARGET/CONTROL" 
    89grep '^[^(Version|Architecture)]' "$CONTROL" > "$TARGET/CONTROL/control" 
     10grep '^Maintainer' "$CONTROL" 2>&1 >/dev/null || \ 
     11        echo "Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>" >> "$TARGET/CONTROL/control" 
     12grep '^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" 
     16} 
    917echo "Version: $VERSION" >> "$TARGET/CONTROL/control" 
    1018echo "Architecture: $ARCH" >> "$TARGET/CONTROL/control" 
Note: See TracChangeset for help on using the changeset viewer.