source: freewrt/scripts/make-ipkg-dir.sh@ 483c323

Last change on this file since 483c323 was 370242e, checked in by Thorsten Glaser <tg@…>, 19 years ago

more from the “coolz” departement:

  • get rid of dependency on external ipkg and python stuff
  • one distfile less too ;)
  • while here, remove executable bits on more shell scripts

tested with a defaultconfig full bootstrap (cleandir+v)

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

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