Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
#!/usr/bin/env -S make -f # This file: # http://anggtwu.net/2023.2-C3/Makefile.html # http://anggtwu.net/2023.2-C3/Makefile # (find-angg "2023.2-C3/Makefile") # Author: Eduardo Ochs <eduardoochs@gmail.com> # # (defun m2 () (interactive) (find-anggfile "2023.2-C2/Makefile")) # (defun m4 () (interactive) (find-anggfile "2023.2-C4/Makefile")) # (defun m7 () (interactive) (find-anggfile "2023.2-C7/Makefile")) # (find-copy-quadros-links) # # (defun e () (interactive) (find-angg "2023.2-C3/Makefile")) # (defun o () (interactive) (find-angg "2022.2-C3/Makefile")) # (defun eo () (interactive) (find-2a '(e) '(o))) # # Skel: (find-semestre-MM-quadros-links "23" "2" "C3" "22" "2") # (find-angg "2017.2-GA/Makefile") # (find-angg "2022.2-C3/Makefile") # (find-angg "SCANS/Makefile") # (find-node "(make)Text Functions") # (find-node "(make)Automatic Variables") # (find-node "(make)Automatic Variables" "$@" "target of the rule") # (find-node "(make)Automatic Variables" "$*" "stem") THIS = 2023.2-C3 PNGS = $(patsubst %.jpg,%.png,$(wildcard *.jpg)) DJVUS = $(patsubst %.png,%.djvu,$(wildcard *.png)) # (find-angg "bin/whiteboard") # (find-es "gimp" "whiteboard") pngs_: echo $(PNGS) pngs: $(PNGS) %.png: %.jpg whiteboard $< $@ %.pgm: %.png convert $< $@ %.pbm: %.pgm mkbitmap -x -f 50 -t 0.4 $< -o $@ %.djvu: %.pbm cjb2 -lossy $< $@ djvus_: echo $(DJVUS) djvus: $(DJVUS) djvu: $(THIS).djvu $(THIS).djvu: $(DJVUS) echo djvm -create $(THIS).djvu 2023????_C3???_?.djvu djvm -create $(THIS).djvu 2023????_C3???_?.djvu pdf: $(THIS).pdf %.pdf: %.djvu ddjvu -format=pdf $< $@ # (find-fline "~/2022.2-quadros/") # (find-fline "~/2023.2-quadros/") # See: (find-eepitch-intro "3.3. `eepitch-preprocess-line'") # (setq eepitch-preprocess-regexp "^") # (setq eepitch-preprocess-regexp "^#T ?") # (find-fline "~/2023.2-quadros/") # #T * (eepitch-shell) #T * (eepitch-kill) #T * (eepitch-shell) #T f () { cp -av ~/2023.2-quadros/$1.jpg $2.jpg #T make $2.png $2.djvu #T make $2.pdf #T } #T f 20230830_160219-C3-1 20230830-C3-1 #T f 20230830_160226-C3-2 20230830-C3-2 #T f 20230901_151147-C3-1 20230901-C3-1 #T f 20230901_151153-C3-2 20230901-C3-2 #T f 20230901_154810-C3-3 20230901-C3-3 #T f 20230901_163155-C3-4 20230901-C3-4 #T f 20230901_163200-C3-5 20230901-C3-5 #T f 20230906_150501-C3-1 20230906-C3-1 #T f 20230913_150604-C3-1 20230913-C3-1 #T f 20230913_150608-C3-2 20230913-C3-2 #T f 20230913_153028-C3-3 20230913-C3-3 #T f 20230913_155946-C3-4 20230913-C3-4 #T f 20230913_155951-C3-5 20230913-C3-5 #T f 20230915_151501-C3-1 20230915-C3-1 #T f 20230915_162733-C3-2 20230915-C3-2 #T f 20230922_145644-C3-1 20230922-C3-1 #T f 20230922_153156-C3-2 20230922-C3-2 #T f 20230922_154130-C3-4 20230922-C3-4 #T f 20230922_160531-C3-5 20230922-C3-5 #T f 20230927_144822-C3-1 20230927-C3-1 #T f 20230927_150612-C3-2 20230927-C3-2 #T f 20230927_153313-C3-3 20230927-C3-3 #T f 20230927_155742-C3-4 20230927-C3-4 #T f 20230927_161420-C3-5 20230927-C3-5 #T f 20230927_162100-C3-6 20230927-C3-6 #T f 20230929_152909-C3-1 20230929-C3-1 #T f 20230929_152916-C3-2 20230929-C3-2 #T f 20230929_155543-C3-3 20230929-C3-3 #T f 20230929_155546-C3-4 20230929-C3-4 #T f 20230929_160242-C3-5 20230929-C3-5 #T f 20231004_150854-C3-1 20231004-C3-1 #T f 20231004_150857-C3-2 20231004-C3-2 #T f 20231004_155723-C3-3 20231004-C3-3 #T f 20231004_155728-C3-4 20231004-C3-4 #T f 20231004_160833-C3-5 20231004-C3-5 #T f 20231006_145034-C3-1 20231006-C3-1 #T f 20231006_151034-C3-2 20231006-C3-2 #T f 20231006_154052-C3-3 20231006-C3-3 #T f 20231006_154058-C3-4 20231006-C3-4 #T f 20231006_160044-C3-5 20231006-C3-5 #T f 20231006_160048-C3-6 20231006-C3-6 #T f 20231011_144644-C3-1 20231011-C3-1 #T f 20231011_144648-C3-2 20231011-C3-2 #T f 20231011_150126-C3-3 20231011-C3-3 #T f 20231011_150134-C3-4 20231011-C3-4 #T f 20231011_151917-C3-5 20231011-C3-5 #T f 20231011_151920-C3-6 20231011-C3-6 #T f 20231011_160539-C3-7 20231011-C3-7 #T f 20231011_160543-C3-8 20231011-C3-8 #T #T f 20231025_144734-C3-1 20231025-C3-1 #T f 20231025_150744-C3-2 20231025-C3-2 #T f 20231025_150747-C3-3 20231025-C3-3 #T f 20231025_152906-C3-4 20231025-C3-4 #T #T f 20231027_152006-C3-1 20231027-C3-1 #T f 20231027_152010-C3-2 20231027-C3-2 #T f 20231027_161318-C3-3 20231027-C3-3 #T f 20231101_144312-C3-1 20231101-C3-1 #T f 20231101_144317-C3-2 20231101-C3-2 #T f 20231101_152024-C3-3 20231101-C3-3 #T f 20231101_152028-C3-4 20231101-C3-4 #T f 20231101_154949-C3-5 20231101-C3-5 #T f 20231101_154952-C3-6 20231101-C3-6 #T f 20231101_161315-C3-7 20231101-C3-7 #T #T f 20231110_161733-C3-1 20231110-C3-1 #T #T f 20231117_161802-C3-1 20231117-C3-1 #T f 20231117_161816-C3-2 20231117-C3-2 #T f 20231117_161827-C3-3 20231117-C3-3 #T f 20231117_161837-C3-4 20231117-C3-4 #T f 20231117_161849-C3-5 20231117-C3-5 #T f 20231117_161913-C3-6 20231117-C3-6 #T #T f 20231124_153052-C3-1 20231124-C3-1 #T f 20231124_153058-C3-2 20231124-C3-2 #T #T cd ~/2023.2-C3/ #T 'ls' 2023*.jpg | sort | sed -e 's/jpg/djvu/g' | tee /tmp/odjvus #T djvm -create C3-quadros.djvu $(cat /tmp/odjvus) #T make C3-quadros.pdf #T # (find-pdf-page "~/2023.2-C3/C3-quadros.pdf" 36) #T #T rsync -avvz -e ssh \ #T *.jpg *.png C3-quadros.pdf \ #T edrx@linode:slow_html/2023.2-C3 #T rsync -avvz -e ssh \ #T *.jpg *.png C3-quadros.pdf \ #T edrx@linode:public_html/2023.2-C3 #T #T # (find-linodesfile "2023.2-C3/") #T # (find-linodepfile "2023.2-C3/") #T http://anggtwu.net/2023.2-C3/C3-quadros.pdf #T * (eepitch-linode) #T * (eepitch-kill) #T * (eepitch-linode) #T cd ~/public_html/ #T makepageindexhtmls #T #T # http://anggtwu.net/2023.2-C3/ #T # http://anggtwu.net/2023.2-C3/C3-quadros.pdf # Local Variables: # coding: utf-8-unix # End: