Commits

Ivan Vučica committed 948e42b

Added pack.sh to package tapper into a convenient script easily transferrable to an embedded system.

  • Participants
  • Parent commits bf5731d

Comments (0)

Files changed (1)

+#!/bin/bash
+
+# Packaging tapper for an embedded system that
+# wants to network over ttyS1
+
+rm the_package.sh
+echo "cat << __EOF > tapper.c" >> the_package.sh
+sed 's/\$/\\$/g' tapper.c >> the_package.sh
+echo "__EOF" >> the_package.sh
+
+echo "cat << __EOF > twinpipe.sh" >> the_package.sh
+sed 's/\$/\\$/g' twinpipe.sh >> the_package.sh
+echo "__EOF" >> the_package.sh
+
+echo "cat << __EOF > Makefile" >> the_package.sh
+sed 's/\$/\\$/g' Makefile >> the_package.sh
+echo "__EOF" >> the_package.sh
+
+echo "cat << __EOF > go.sh" >> the_package.sh
+echo "CC=tcc make" >> the_package.sh
+echo "./tapper /dev/ttyS1 /dev/ttyS1" >> the_package.sh
+echo "__EOF" >> the_package.sh
+
+echo "chmod +x go.sh" >> the_package.sh
+echo "chmod +x twinpipe.sh" >> the_package.sh
+