source: freewrt/scripts/make-ipkg-dir.sh@ 145c3b8

Last change on this file since 145c3b8 was b3ec2ea, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

remove python dependency, ipkg-make-index.sh from OpenWrt, get rid of All package collection, use allmodconfig instead

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1223 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100755
File size: 730 bytes
Line 
1#!/bin/sh
2BASE=http://www.freewrt.org
3TARGET=$1
4CONTROL=$2
5VERSION=$3
6ARCH=$4
7
8WD=$(pwd)
9
10mkdir -p "$TARGET/CONTROL"
11grep '^[^(Version|Architecture)]' "$CONTROL" > "$TARGET/CONTROL/control"
12grep '^Maintainer' "$CONTROL" 2>&1 >/dev/null || \
13 echo "Maintainer: FreeWRT Developers Team <freewrt-developers@freewrt.org>" >> "$TARGET/CONTROL/control"
14grep '^Source' "$CONTROL" 2>&1 >/dev/null || {
15 pkgbase=$(echo "$WD" | sed -e "s|^$TOPDIR/||g")
16 [ "$pkgbase" = "$WD" ] && src="N/A" || src="$BASE/$pkgbase"
17 echo "Source: $src" >> "$TARGET/CONTROL/control"
18}
19echo "Version: $VERSION" >> "$TARGET/CONTROL/control"
20echo "Architecture: $ARCH" >> "$TARGET/CONTROL/control"
21chmod 644 "$TARGET/CONTROL/control"
Note: See TracBrowser for help on using the repository browser.