aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arch.deps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arch.deps.sh')
-rwxr-xr-xarch/arch.deps.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arch.deps.sh b/arch/arch.deps.sh
new file mode 100755
index 0000000..35b3984
--- /dev/null
+++ b/arch/arch.deps.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+list_file="$1"
+: ${list_file:="arch.list"}
+
+loop_first=1
+for pkg in `cat "${list_file}"`; do
+ if [ "${loop_first}" = "1" ]; then
+ printf "'%s'" "${pkg}"
+ else
+ printf " '%s'" "${pkg}"
+ fi
+ loop_first=0
+done