From 99702095780dd12910e5cd8e0780ef2133564da0 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 03 Feb 2012 08:13:43 -0500 Subject: Write a script to generate an opkg simulator. --- diff --git a/genopkg.sh b/genopkg.sh new file mode 100755 index 0000000..e2e172b --- /dev/null +++ b/genopkg.sh @@ -0,0 +1,29 @@ +#! /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}" +fi +platform=${1} +arch=${2} + +cat > /usr/local/bin/opkg <