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.1-C4/Makefile.html # http://anggtwu.net/2023.1-C4/Makefile # (find-angg "2023.1-C4/Makefile") # Author: Eduardo Ochs <eduardoochs@gmail.com> # # (defun m2 () (interactive) (find-anggfile "2023.1-C2/Makefile")) # (defun m4 () (interactive) (find-anggfile "2023.1-C4/Makefile")) # (defun m5 () (interactive) (find-anggfile "2023.1-C4/Makefile")) # (defun m7 () (interactive) (find-anggfile "2023.1-LA/Makefile")) # (find-copy-quadros-links) # # (defun e () (interactive) (find-angg "2023.1-C4/Makefile")) # (defun o () (interactive) (find-angg "2022.2-C4/Makefile")) # (defun eo () (interactive) (find-2a '(e) '(o))) # # Skel: (find-semestre-MM-quadros-links "23" "1" "C4" "22" "2") # (find-angg "2017.2-GA/Makefile") # (find-angg "2022.2-C4/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.1-C4 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????_C4???_?.djvu djvm -create $(THIS).djvu 2023????_C4???_?.djvu pdf: $(THIS).pdf %.pdf: %.djvu ddjvu -format=pdf $< $@ # (find-fline "~/2022.2-quadros/") # (find-fline "~/2023.1-quadros/") # See: (find-eepitch-intro "3.3. `eepitch-preprocess-line'") # (setq eepitch-preprocess-regexp "^") # (setq eepitch-preprocess-regexp "^#T ?") # (find-fline "~/2023.1-quadros/") # #T * (eepitch-shell) #T * (eepitch-kill) #T * (eepitch-shell) #T f () { cp -av ~/2023.1-quadros/$1.jpg $2.jpg #T make $2.png $2.djvu #T make $2.pdf #T } #T f 20230403_155807_C4-1 20230403_C4-1 #T f 20230403_155816_C4-2 20230403_C4-2 #T f 20230414_175153-C4-1 20230414-C4-1 #T f 20230414_175203-C4-2 20230414-C4-2 #T f 20230417_160215-C4-1 20230417-C4-1 #T f 20230417_160223-C4-2 20230417-C4-2 #T f 20230424_160927-C4-1 20230424-C4-1 #T f 20230424_160942-C4-2 20230424-C4-2 #T f 20230428_174244-C4-1 20230428-C4-1 #T f 20230428_174252-C4-2 20230428-C4-2 #T f 20230428_180005-C4-3 20230428-C4-3 #T f 20230505_171524-C4-1 20230505-C4-1 #T f 20230508_160644-C4-1 20230508-C4-1 #T f 20230512_175751-C4-1 20230512-C4-1 #T f 20230512_175800-C4-2 20230512-C4-2 #T f 20230512_180109-C4-3 20230512-C4-3 #T f 20230515_152010-C4-1 20230515-C4-1 #T f 20230519_173310-C4-1 20230519-C4-1 #T f 20230522_161009-C4-1 20230522-C4-1 #T f 20230522_161017-C4-2 20230522-C4-2 #T f 20230523_175140-C4-1 20230523-C4-1 #T f 20230529_160913-C4-1 20230529-C4-1 #T f 20230529_160923-C4-2 20230529-C4-2 #T f 20230530_174415-C4-1 20230530-C4-1 #T f 20230530_174426-C4-2 20230530-C4-2 #T f 20230601_174339-C4-1 20230601-C4-1 #T f 20230605_155044-C4-1 20230605-C4-1 #T f 20230605_155054-C4-2 20230605-C4-2 #T f 20230605_155826-C4-3 20230605-C4-3 #T f 20230606_175904-C4-1 20230606-C4-1 #T f 20230606_175914-C4-2 20230606-C4-2 #T f 20230607_152134-C4-1 20230607-C4-1 #T f 20230607_152141-C4-2 20230607-C4-2 #T f 20230607_154136-C4-3 20230607-C4-3 #T f 20230607_154142-C4-4 20230607-C4-4 #T f 20230607_171402-C4-5 20230607-C4-5 #T f 20230612_160358-C4-1 20230612-C4-1 #T f 20230613_175957-C4-1 20230613-C4-1 #T f 20230619_160605-C4-1 20230619-C4-1 #T f 20230620_175232-C4-1 20230620-C4-1 #T f 20230626_160801-C4-1 20230626-C4-1 #T f 20230627_180723-C4-1 20230627-C4-1 #T #T f 20230703_160811-C4-1 20230703-C4-1 #T #T cd ~/2023.1-C4/ #T 'ls' 2023*.jpg | sort | sed -e 's/jpg/djvu/g' | tee /tmp/odjvus #T djvm -create C4-quadros.djvu $(cat /tmp/odjvus) #T make C4-quadros.pdf #T # (find-pdf-page "~/2023.1-C4/C4-quadros.pdf" 40) #T # (find-sh0 "cp -v ~/2023.1-C4/C4-quadros.pdf /tmp/") #T #T rsync -avvz -e ssh \ #T *.jpg *.png C4-quadros.pdf \ #T edrx@linode:slow_html/2023.1-C4 #T rsync -avvz -e ssh \ #T *.jpg *.png C4-quadros.pdf \ #T edrx@linode:public_html/2023.1-C4 #T #T # (find-linodesfile "2023.1-C4/") #T # (find-linodepfile "2023.1-C4/") #T http://anggtwu.net/2023.1-C4/C4-quadros.pdf #T * (eepitch-linode) #T * (eepitch-kill) #T * (eepitch-linode) #T cd ~/public_html/ #T makepageindexhtmls #T #T # http://anggtwu.net/2023.1-C4/ #T # http://anggtwu.net/2023.1-C4/C4-quadros.pdf # Local Variables: # coding: utf-8-unix # End: