[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
howtos:misc:anatomy_of_a_slackbuild [2019/12/28 11:17 (UTC)] – [Anatomy Of a Slackbuild] captain_sensible | howtos:misc:anatomy_of_a_slackbuild [2020/01/05 16:47 (UTC)] – captain_sensible | ||
---|---|---|---|
Line 154: | Line 154: | ||
</ | </ | ||
- | Before we go into this let me have a look in my slackware file system and see whats there at / | + | Before we go into this let me have a look in my slackware file system and see whats there at / |
TMP is going to be set to /tmp/SBo. | TMP is going to be set to /tmp/SBo. | ||
Line 300: | Line 300: | ||
$PKG equates to / | $PKG equates to / | ||
- | --- //[[wiki:user: | + | Next Block of code:\\ |
+ | < | ||
+ | |||
+ | find $PKG -print0 | xargs -0 file | grep -e " | ||
+ | | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | ||
+ | |||
+ | mkdir -p $PKG/ | ||
+ | cp -a \ | ||
+ | FAQ INSTALL LICENSE MANIFEST README.md TODO \ | ||
+ | $PKG/ | ||
+ | cat $CWD/ | ||
+ | cp $CWD/ | ||
+ | |||
+ | mkdir -p $PKG/ | ||
+ | cat $CWD/ | ||
+ | |||
+ | cd $PKG | ||
+ | / | ||
+ | |||
+ | </ | ||
+ | |||
+ | The first two lines of this block are a bit of a mouth-full: | ||
+ | < | ||
+ | find $PKG -print0 | xargs -0 file | grep -e " | ||
+ | | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | ||
+ | </ | ||
+ | |||
+ | We can however pick out key words that are commands and that can help to make some sense of it. | ||
+ | ind" located at / | ||
+ | |||
+ | The " | ||
+ | |||
+ | To give a succinct answer the two lines are removing debugging symbols and other unnecessary stuff to make the binaries smaller, faster and take up less memory. | ||
+ | |||
+ | < | ||
+ | mkdir -p $PKG/ | ||
+ | </ | ||
+ | |||
+ | Here we are preparing a directory which will be called " | ||
+ | The next lines put files such as README.md into the / | ||
+ | |||
+ | < | ||
+ | cat $CWD/ | ||
+ | </ | ||
+ | |||
+ | That line goes back to the original directory that Latex2html.SlackBuild was run from ( i previously quoted Desktop) opens up the SlackBuild with " | ||
+ | Now before I submitted latex2html to slackbuilds obviously I did some testing and found that when the package was installed it had a fairly comprehensive output of what it could do just using: | ||
+ | |||
+ | < | ||
+ | $ latex2html --help | ||
+ | </ | ||
+ | |||
+ | Also I had access to a comprehensive manual in pdf format; so in my case I did not write code for man pages. Instead I simply put a copy of " | ||
+ | |||
+ | |||
+ | --- // | ||
+ | |||
+ | //If you teach maths it doesn' | ||
+ | [[https:// | ||
====== Sources ====== | ====== Sources ====== |