diff options
author | Nat Lasseter <user@4574.co.uk> | 2024-03-13 09:57:00 +0000 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2024-03-13 09:57:00 +0000 |
commit | 85bf60d6a9bf2694a540cc00ca6e72dccde5b26b (patch) | |
tree | 2d6c09d410729aac7b91b8ad36348d43ef4b3c0b | |
parent | 4583098c1e98a49091bed36fb7f31ad828bd3d16 (diff) |
add enmeta and sort README
-rw-r--r-- | README | 59 | ||||
-rwxr-xr-x | aptmeta/demeta (renamed from demeta) | 0 | ||||
-rwxr-xr-x | aptmeta/enmeta | 36 |
3 files changed, 67 insertions, 28 deletions
@@ -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/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 |