From f77b88d124ea1c900f9cf5e04046939aad48bbe1 Mon Sep 17 00:00:00 2001 From: mbm Date: Sun, 6 Mar 2005 03:34:52 +0000 Subject: nbd's makefile/menuconfig rewrite git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@307 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/make-ipkg-dir.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/make-ipkg-dir.sh (limited to 'scripts/make-ipkg-dir.sh') diff --git a/scripts/make-ipkg-dir.sh b/scripts/make-ipkg-dir.sh new file mode 100755 index 000000000..f725413ae --- /dev/null +++ b/scripts/make-ipkg-dir.sh @@ -0,0 +1,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" -- cgit v1.2.3 From 9c01873c40f45fa5e07b5e307294c22d58aaa33b Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 21 Oct 2005 17:20:24 +0000 Subject: update make-ipkg-dir.sh git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2209 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/make-ipkg-dir.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/make-ipkg-dir.sh') diff --git a/scripts/make-ipkg-dir.sh b/scripts/make-ipkg-dir.sh index f725413ae..56740676a 100755 --- a/scripts/make-ipkg-dir.sh +++ b/scripts/make-ipkg-dir.sh @@ -1,4 +1,5 @@ #!/bin/bash +BASE=http://svn.openwrt.org/openwrt/trunk/openwrt TARGET=$1 CONTROL=$2 VERSION=$3 @@ -6,6 +7,13 @@ ARCH=$4 mkdir -p "$TARGET/CONTROL" grep '^[^(Version|Architecture)]' "$CONTROL" > "$TARGET/CONTROL/control" +grep '^Maintainer' "$CONTROL" 2>&1 >/dev/null || \ + echo "Maintainer: OpenWrt Developers Team " >> "$TARGET/CONTROL/control" +grep '^Source' "$CONTROL" 2>&1 >/dev/null || { + pkgbase=$(pwd | sed -e "s|^$TOPDIR/||g") + [ "$pkgbase" = "$WD" ] && src="N/A" || src="$BASE/$pkgbase" + echo "Source: $src" >> "$TARGET/CONTROL/control" +} echo "Version: $VERSION" >> "$TARGET/CONTROL/control" echo "Architecture: $ARCH" >> "$TARGET/CONTROL/control" chmod 644 "$TARGET/CONTROL/control" -- cgit v1.2.3 From 4b509a8fb845c5565465e405bc1a2851837b04a6 Mon Sep 17 00:00:00 2001 From: nico Date: Sat, 22 Oct 2005 12:25:42 +0000 Subject: set undefined WD variable git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2231 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/make-ipkg-dir.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/make-ipkg-dir.sh') diff --git a/scripts/make-ipkg-dir.sh b/scripts/make-ipkg-dir.sh index 56740676a..b43edc37c 100755 --- a/scripts/make-ipkg-dir.sh +++ b/scripts/make-ipkg-dir.sh @@ -5,12 +5,14 @@ CONTROL=$2 VERSION=$3 ARCH=$4 +WD=$(pwd) + mkdir -p "$TARGET/CONTROL" grep '^[^(Version|Architecture)]' "$CONTROL" > "$TARGET/CONTROL/control" grep '^Maintainer' "$CONTROL" 2>&1 >/dev/null || \ echo "Maintainer: OpenWrt Developers Team " >> "$TARGET/CONTROL/control" grep '^Source' "$CONTROL" 2>&1 >/dev/null || { - pkgbase=$(pwd | sed -e "s|^$TOPDIR/||g") + pkgbase=$(echo "$WD)" | sed -e "s|^$TOPDIR/||g") [ "$pkgbase" = "$WD" ] && src="N/A" || src="$BASE/$pkgbase" echo "Source: $src" >> "$TARGET/CONTROL/control" } -- cgit v1.2.3 From 6451d03c02951f9cbf46510e5d0adb74ffca70c8 Mon Sep 17 00:00:00 2001 From: nico Date: Sat, 22 Oct 2005 12:27:35 +0000 Subject: fix typo in my last commit git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2232 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/make-ipkg-dir.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/make-ipkg-dir.sh') diff --git a/scripts/make-ipkg-dir.sh b/scripts/make-ipkg-dir.sh index b43edc37c..236cb6feb 100755 --- a/scripts/make-ipkg-dir.sh +++ b/scripts/make-ipkg-dir.sh @@ -12,7 +12,7 @@ grep '^[^(Version|Architecture)]' "$CONTROL" > "$TARGET/CONTROL/control" grep '^Maintainer' "$CONTROL" 2>&1 >/dev/null || \ echo "Maintainer: OpenWrt Developers Team " >> "$TARGET/CONTROL/control" grep '^Source' "$CONTROL" 2>&1 >/dev/null || { - pkgbase=$(echo "$WD)" | sed -e "s|^$TOPDIR/||g") + pkgbase=$(echo "$WD" | sed -e "s|^$TOPDIR/||g") [ "$pkgbase" = "$WD" ] && src="N/A" || src="$BASE/$pkgbase" echo "Source: $src" >> "$TARGET/CONTROL/control" } -- cgit v1.2.3 From 6b4414a89addc5a0585ed7d0e62a5f42469a8f6a Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 14 Apr 2006 01:26:27 +0000 Subject: remove make-ipkg-dir.sh git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3644 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/make-ipkg-dir.sh | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100755 scripts/make-ipkg-dir.sh (limited to 'scripts/make-ipkg-dir.sh') diff --git a/scripts/make-ipkg-dir.sh b/scripts/make-ipkg-dir.sh deleted file mode 100755 index 236cb6feb..000000000 --- a/scripts/make-ipkg-dir.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -BASE=http://svn.openwrt.org/openwrt/trunk/openwrt -TARGET=$1 -CONTROL=$2 -VERSION=$3 -ARCH=$4 - -WD=$(pwd) - -mkdir -p "$TARGET/CONTROL" -grep '^[^(Version|Architecture)]' "$CONTROL" > "$TARGET/CONTROL/control" -grep '^Maintainer' "$CONTROL" 2>&1 >/dev/null || \ - echo "Maintainer: OpenWrt Developers Team " >> "$TARGET/CONTROL/control" -grep '^Source' "$CONTROL" 2>&1 >/dev/null || { - pkgbase=$(echo "$WD" | sed -e "s|^$TOPDIR/||g") - [ "$pkgbase" = "$WD" ] && src="N/A" || src="$BASE/$pkgbase" - echo "Source: $src" >> "$TARGET/CONTROL/control" -} -echo "Version: $VERSION" >> "$TARGET/CONTROL/control" -echo "Architecture: $ARCH" >> "$TARGET/CONTROL/control" -chmod 644 "$TARGET/CONTROL/control" -- cgit v1.2.3 From f21c448c6d0ec4a3b61c4d826eb8c1b668e10409 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 31 May 2006 12:33:06 +0000 Subject: allow building of kernel-specific stuff in package/ instead of target/linux/package/ and merge target/linux/package/base-files into package/base-files git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3855 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/make-ipkg-dir.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/make-ipkg-dir.sh (limited to 'scripts/make-ipkg-dir.sh') diff --git a/scripts/make-ipkg-dir.sh b/scripts/make-ipkg-dir.sh new file mode 100755 index 000000000..236cb6feb --- /dev/null +++ b/scripts/make-ipkg-dir.sh @@ -0,0 +1,21 @@ +#!/bin/bash +BASE=http://svn.openwrt.org/openwrt/trunk/openwrt +TARGET=$1 +CONTROL=$2 +VERSION=$3 +ARCH=$4 + +WD=$(pwd) + +mkdir -p "$TARGET/CONTROL" +grep '^[^(Version|Architecture)]' "$CONTROL" > "$TARGET/CONTROL/control" +grep '^Maintainer' "$CONTROL" 2>&1 >/dev/null || \ + echo "Maintainer: OpenWrt Developers Team " >> "$TARGET/CONTROL/control" +grep '^Source' "$CONTROL" 2>&1 >/dev/null || { + pkgbase=$(echo "$WD" | sed -e "s|^$TOPDIR/||g") + [ "$pkgbase" = "$WD" ] && src="N/A" || src="$BASE/$pkgbase" + echo "Source: $src" >> "$TARGET/CONTROL/control" +} +echo "Version: $VERSION" >> "$TARGET/CONTROL/control" +echo "Architecture: $ARCH" >> "$TARGET/CONTROL/control" +chmod 644 "$TARGET/CONTROL/control" -- cgit v1.2.3 From 3dcf8b9e33a39bb791904fcf6b2a4ff6ccbcfa7a Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 10 Oct 2006 21:06:45 +0000 Subject: more portability fixes and a prereq check for gnu tar git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@5037 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/make-ipkg-dir.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/make-ipkg-dir.sh') diff --git a/scripts/make-ipkg-dir.sh b/scripts/make-ipkg-dir.sh index 236cb6feb..902a4b526 100755 --- a/scripts/make-ipkg-dir.sh +++ b/scripts/make-ipkg-dir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh BASE=http://svn.openwrt.org/openwrt/trunk/openwrt TARGET=$1 CONTROL=$2 -- cgit v1.2.3