From 85bf60d6a9bf2694a540cc00ca6e72dccde5b26b Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Wed, 13 Mar 2024 09:57:00 +0000 Subject: add enmeta and sort README --- README | 59 ++++++++++++++++++++++++++++++---------------------------- aptmeta/demeta | 36 +++++++++++++++++++++++++++++++++++ aptmeta/enmeta | 36 +++++++++++++++++++++++++++++++++++ demeta | 36 ----------------------------------- 4 files changed, 103 insertions(+), 64 deletions(-) create mode 100755 aptmeta/demeta create mode 100755 aptmeta/enmeta delete mode 100755 demeta 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/aptmeta/demeta b/aptmeta/demeta new file mode 100755 index 0000000..a21b9f0 --- /dev/null +++ b/aptmeta/demeta @@ -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 set as manually installed: +echo $DEPS +echo +echo Will remove: +echo $PKG + +echo +echo -n 'Type y to continue: ' +read LINE +if [ "z$LINE" == "zy" ]; then + sudo apt-mark manual $DEPS + sudo apt-get purge $PKG +else + echo Abandoned. +fi + +popd >/dev/null +rm -rf $WDIR 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 diff --git a/demeta b/demeta deleted file mode 100755 index a21b9f0..0000000 --- a/demeta +++ /dev/null @@ -1,36 +0,0 @@ -#!/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 set as manually installed: -echo $DEPS -echo -echo Will remove: -echo $PKG - -echo -echo -n 'Type y to continue: ' -read LINE -if [ "z$LINE" == "zy" ]; then - sudo apt-mark manual $DEPS - sudo apt-get purge $PKG -else - echo Abandoned. -fi - -popd >/dev/null -rm -rf $WDIR -- cgit v1.2.1