aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-09-18 09:31:18 +0200
committerKarel Kočí <cynerd@email.cz>2015-09-18 09:34:17 +0200
commitb586251381a96c97b19ce52792d649b537014126 (patch)
treec513a822d7d19392bcadc997c73be78ee685c8fd
parent2fa4a479d19510ca83ea660a0e2f0964b585f7ea (diff)
downloadlinux-conf-perf-b586251381a96c97b19ce52792d649b537014126.tar.gz
linux-conf-perf-b586251381a96c97b19ce52792d649b537014126.tar.bz2
linux-conf-perf-b586251381a96c97b19ce52792d649b537014126.zip
Add scripts buildcnf
This script is for debugging purposes only. It should be launched only in jobfiles folder and it's generating file cnf.
-rwxr-xr-xscripts/buildcnf12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/buildcnf b/scripts/buildcnf
new file mode 100755
index 0000000..fdcf217
--- /dev/null
+++ b/scripts/buildcnf
@@ -0,0 +1,12 @@
+#!/bin/bash
+# This is simple scripts created for generating input file for PicoSAT in jobfiles folder.
+# Tis script is generating file cnf from files fixed and rules and add format head.
+# This script is for debugging purposes.
+
+sed 's/$/ 0/' fixed > cnf
+sed 's/$/0/' rules >> cnf
+
+LINE=`wc -l cnf | awk '{print $1}'`
+VARS=`head -1 variable_count`
+
+sed -i "1ip cnf $VARS $LINE" cnf