summaryrefslogtreecommitdiffstats
path: root/genopkg.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-09 16:46:41 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-09 16:47:20 (EDT)
commit29c2633f107ab3cdd1e205979502acba39f236fa (patch)
treea9c59cf04603a510c0344c94b4c1ba9a11f92c48 /genopkg.sh
parenta458046b152f726eafacec9c3ecb9b5967524127 (diff)
Remove old genopkg.sh
Diffstat (limited to 'genopkg.sh')
-rwxr-xr-xgenopkg.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/genopkg.sh b/genopkg.sh
deleted file mode 100755
index 285740a..0000000
--- a/genopkg.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#! /bin/sh
-# genopkg.sh
-# Writes a simple shell script that simulates commands of opkg used by
-# opkhelper. This is useful to break the circular dependency in which building
-# source packages requires opkhelper and opkhelper depends on opkg already being
-# installed.
-
-if [ ${#} -ne 2 ]; then
- printf 'Usage: %s platform architecture\n' "${0}"
- exit 1
-fi
-platform=${1}
-arch=${2}
-
-cat > /usr/local/bin/opkg <<EOF
-#! /bin/sh
-
-case "\${1}" in
- status)
- printf 'Package: %s\n' "\${2}"
- ;;
- print-architecture)
- cat <<EOO
-arch all 100
-arch ${platform} 200
-arch ${arch} 300
-EOO
- ;;
-esac
-EOF