summaryrefslogtreecommitdiffstats
path: root/openwrt/scripts/make-ipkg-dir.sh
blob: f725413ae3652c459095102843eb77e6640ff111 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
TARGET=$1
CONTROL=$2
VERSION=$3
ARCH=$4

mkdir -p "$TARGET/CONTROL"
grep '^[^(Version|Architecture)]' "$CONTROL" > "$TARGET/CONTROL/control"
echo "Version: $VERSION" >> "$TARGET/CONTROL/control"
echo "Architecture: $ARCH" >> "$TARGET/CONTROL/control"
chmod 644 "$TARGET/CONTROL/control"