aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README59
-rwxr-xr-xaptmeta/demeta (renamed from demeta)0
-rwxr-xr-xaptmeta/enmeta36
3 files changed, 67 insertions, 28 deletions
diff --git a/README b/README
index 7762e15..7b963dc 100644
--- a/README
+++ b/README
@@ -1,38 +1,41 @@
-scan.sh:
- Batch scanning script
-demeta:
- Mark all dependencies as manually installed then purge an apt metapackage.
-digits.rb:
- Digit combinations for target sum
-gen_object/:
- The start of an erlang OO behaviour
-pdfbook4.rb:
- Page order to make (or pdfjam command to turn a pdf file into) 4-up double-sided brochure ordered pages (to make two A6 folia per A4 page)
-tabelvortoj.rb:
- Tabelvortoj test
+NDFA2DFAexample:
+ NDFA to DFA example for VFSM
+Xmodmap:
+ Swap numbers and symbols on the numrow
+alleq.hs:
+ Haskell function to check all elements of a list are equal
+aptmeta/
+ demeta:
+ Mark all dependencies as manually installed then purge an apt metapackage.
+ enmeta:
+ Install an apt metapackage then mark all dependencies as automatically installed.
+box.mzn:
+ Intended to find the dimensions of a rectangle with an area at least n units and a ratio e.
cpc/:
Cyclically Permutable Codewords
-todo.vim:
- Simple Vim Todo
describe.rb:
Describe the purpose of an executable
-slide.rb:
- A laser-cuttable circular slide rule generator
+digits.rb:
+ Digit combinations for target sum
+gen_object/:
+ The start of an erlang OO behaviour
logcircle.rb:
Output cartesian coordinates for the tickmarks along a log scale around a circle
-sudoku.rb:
- Ruby ILP SAT sudoku solver
-section.c:
- Like the section command on IOS
-Xmodmap:
- Swap numbers and symbols on the numrow
make.rb:
Ruby script to make playing The Factory efficient (and thus boring)
-box.mzn:
- Intended to find the dimensions of a rectangle with an area at least n units and a ratio e.
-NDFA2DFAexample:
- NDFA to DFA example for VFSM
+pdfbook4.rb:
+ Page order to make (or pdfjam command to turn a pdf file into) 4-up double-sided brochure ordered pages (to make two A6 folia per A4 page)
+scan.sh:
+ Batch scanning script
+section.c:
+ Like the section command on IOS
+slide.rb:
+ A laser-cuttable circular slide rule generator
stltogl:
Vim Script to convert an STL file to openGL glVertex3f()s for inclusion in a c program
-alleq.hs:
- Haskell function to check all elements of a list are equal
+sudoku.rb:
+ Ruby ILP SAT sudoku solver
+tabelvortoj.rb:
+ Tabelvortoj test
+todo.vim:
+ Simple Vim Todo
diff --git a/demeta b/aptmeta/demeta
index a21b9f0..a21b9f0 100755
--- a/demeta
+++ b/aptmeta/demeta
diff --git a/aptmeta/enmeta b/aptmeta/enmeta
new file mode 100755
index 0000000..14fdfdb
--- /dev/null
+++ b/aptmeta/enmeta
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+PKG=$1
+
+if [ -z $PKG ]; then
+ echo "Specify package" >&2
+ exit 1
+fi
+
+WDIR=$(mktemp --tmpdir -d demeta.XXXXXXXXXX)
+pushd $WDIR >/dev/null
+
+FILE=$(apt-get download $PKG --print-uris | cut -d\ -f2)
+apt-get -qq download $PKG
+
+CNTRL=$(ar p $FILE control.tar.xz | unxz | tar -x ./control)
+DEPS=$(cat control | grep ^Depends | cut -d: -f2 | tr -d ,)
+
+echo Will install:
+echo $PKG
+echo
+echo Will set as automatically installed:
+echo $DEPS
+
+echo
+echo -n 'Type y to continue: '
+read LINE
+if [ "z$LINE" == "zy" ]; then
+ sudo apt-get install $PKG
+ sudo apt-mark auto $DEPS
+else
+ echo Abandoned.
+fi
+
+popd >/dev/null
+rm -rf $WDIR