aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/make_dummy_placement.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/make_dummy_placement.sh b/tools/make_dummy_placement.sh
new file mode 100755
index 0000000..7f93be9
--- /dev/null
+++ b/tools/make_dummy_placement.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+for a in $* ; do
+X=$(( $RANDOM % 500 ))
+Y=$(( $RANDOM % 500 ))
+X1=$(( $X + 150 ))
+Y1=$(( $Y + 20 ))
+echo "insert into placements select switch, box '(($X,$Y),($X1,$Y1))' from switches where sysname = '$a';"
+done