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-C2/Makefile.html # http://anggtwu.net/2023.2-C2/Makefile # (find-angg "2023.2-C2/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-C2/Makefile")) # (defun o () (interactive) (find-angg "2023.1-C2/Makefile")) # (defun eo () (interactive) (find-2a '(e) '(o))) # # Skel: (find-semestre-MM-quadros-links "23" "2" "C2" "23" "1") # (find-angg "2017.2-GA/Makefile") # (find-angg "2023.1-C2/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-C2 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????_C2???_?.djvu djvm -create $(THIS).djvu 2023????_C2???_?.djvu pdf: $(THIS).pdf %.pdf: %.djvu ddjvu -format=pdf $< $@ # (find-fline "~/2023.1-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 20230828_155649-C2-1 20230828-C2-1 #T f 20230828_155659-C2-2 20230828-C2-2 #T f 20230829_175524-C2-1 20230829-C2-1 #T f 20230829_175531-C2-2 20230829-C2-2 #T f 20230830_101859-C2-1 20230830-C2-1 #T f 20230830_101907-C2-2 20230830-C2-2 #T f 20230904_153639-C2-1 20230904-C2-1 #T f 20230904_153645-C2-2 20230904-C2-2 #T f 20230904_160028-C2-3 20230904-C2-3 #T f 20230905_175833-C2-1 20230905-C2-1 #T f 20230905_175846-C2-2 20230905-C2-2 #T f 20230906_100547-C2-1 20230906-C2-1 #T f 20230906_100552-C2-2 20230906-C2-2 #T f 20230906_104045-C2-3 20230906-C2-3 #T f 20230906_104052-C2-4 20230906-C2-4 #T f 20230906_110333-C2-5 20230906-C2-5 #T f 20230906_110339-C2-6 20230906-C2-6 #T f 20230911_153702-C2-1 20230911-C2-1 #T f 20230911_153710-C2-2 20230911-C2-2 #T f 20230911_160123-C2-3 20230911-C2-3 #T f 20230912_180151-C2-1 20230912-C2-1 #T f 20230912_180158-C2-2 20230912-C2-2 #T f 20230913_101219-C2-1 20230913-C2-1 #T f 20230913_101224-C2-2 20230913-C2-2 #T f 20230913_103626-C2-3 20230913-C2-3 #T f 20230913_103633-C2-4 20230913-C2-4 #T f 20230913_105958-C2-5 20230913-C2-5 #T f 20230913_110004-C2-6 20230913-C2-6 #T f 20230918_160126-C2-1 20230918-C2-1 #T f 20230918_160134-C2-2 20230918-C2-2 #T f 20230919_165225-C2-1 20230919-C2-1 #T f 20230919_165235-C2-2 20230919-C2-2 #T f 20230919_172612-C2-3 20230919-C2-3 #T f 20230919_172622-C2-4 20230919-C2-4 #T f 20230919_175827-C2-5 20230919-C2-5 #T f 20230919_175835-C2-6 20230919-C2-6 #T f 20230920_110439-C2-1 20230920-C2-1 #T f 20230920_110449-C2-2 20230920-C2-2 #T f 20230925_153540-C2-1 20230925-C2-1 #T f 20230925_153549-C2-2 20230925-C2-2 #T f 20230925_160045-C2-3 20230925-C2-3 #T f 20230926_180237-C2-1 20230926-C2-1 #T f 20230927_110950-C2-1 20230927-C2-1 #T f 20231002_152422-C2-1 20231002-C2-1 #T f 20231002_152428-C2-2 20231002-C2-2 #T f 20231002_162429-C2-3 20231002-C2-3 #T f 20231009_171419-C2-1 20231009-C2-1 #T f 20231009_171426-C2-2 20231009-C2-2 #T f 20231011_110858-C2-1 20231011-C2-1 #T f 20231011_110902-C2-2 20231011-C2-2 #T f 20231023_144235-C2-1 20231023-C2-1 #T f 20231023_160218-C2-2 20231023-C2-2 #T f 20231024_165146-C2-1 20231024-C2-1 #T f 20231024_180239-C2-2 20231024-C2-2 #T f 20231024_180244-C2-3 20231024-C2-3 #T f 20231025_104215-C2-1 20231025-C2-1 #T f 20231025_104221-C2-2 20231025-C2-2 #T f 20231025_110225-C2-3 20231025-C2-3 #T f 20231031_180548-C2-1 20231031-C2-1 #T f 20231031_180556-C2-2 20231031-C2-2 #T f 20231101_101738-C2-1 20231101-C2-1 #T f 20231101_101745-C2-2 20231101-C2-2 #T f 20231101_105038-C2-3 20231101-C2-3 #T f 20231101_105051-C2-4 20231101-C2-4 #T f 20231101_105706-C2-5 20231101-C2-5 #T f 20231106_145114-C2-1 20231106-C2-1 #T f 20231106_145120-C2-2 20231106-C2-2 #T f 20231106_154141-C2-3 20231106-C2-3 #T f 20231106_154151-C2-4 20231106-C2-4 #T f 20231106_155909-C2-5 20231106-C2-5 #T f 20231107_181626-C2-1 20231107-C2-1 #T f 20231107_181636-C2-2 20231107-C2-2 #T f 20231113_153214-C2-1 20231113-C2-1 #T f 20231113_153224-C2-2 20231113-C2-2 #T f 20231113_161258-C2-3 20231113-C2-3 #T f 20231113_161303-C2-4 20231113-C2-4 #T f 20231114_172803-C2-1 20231114-C2-1 #T f 20231114_172810-C2-2 20231114-C2-2 #T f 20231114_172815-C2-3 20231114-C2-3 #T f 20231114_181102-C2-4 20231114-C2-4 #T f 20231116_153115-C2-1 20231116-C2-1 #T f 20231116_153124-C2-2 20231116-C2-2 #T f 20231116_155539-C2-3 20231116-C2-3 #T f 20231116_155545-C2-4 20231116-C2-4 #T f 20231121_171707-C2-1 20231121-C2-1 #T f 20231121_171715-C2-2 20231121-C2-2 #T f 20231121_180545-C2-3 20231121-C2-3 #T f 20231121_180551-C2-4 20231121-C2-4 #T f 20231122_101917-C2-1 20231122-C2-1 #T f 20231122_101929-C2-2 20231122-C2-2 #T f 20231122_105748-C2-3 20231122-C2-3 #T f 20231122_105758-C2-4 20231122-C2-4 #T f 20231127_160155-C2-1 20231127-C2-1 #T f 20231127_160202-C2-2 20231127-C2-2 #T f 20231128_175804-C2-1 20231128-C2-1 #T f 20231129_110737-C2-1 20231129-C2-1 #T f 20231129_110743-C2-2 20231129-C2-2 #T #T f 20231204_105439-C2-1 20231204-C2-1 #T f 20231204_105443-C2-2 20231204-C2-2 #T f 20231204_110153-C2-3 20231204-C2-3 #T f 20231204_110158-C2-4 20231204-C2-4 #T #T f 20231205_174607-C2-1 20231205-C2-1 #T f 20231205_174613-C2-2 20231205-C2-2 #T f 20231205_181132-C2-3 20231205-C2-3 #T f 20231205_181137-C2-4 20231205-C2-4 #T f 20231205_185101-C2-5 20231205-C2-5 #T f 20231205_185110-C2-6 20231205-C2-6 #T f 20231211_150312-C2-1 20231211-C2-1 #T f 20231211_150407-C2-2 20231211-C2-2 #T f 20231211_151400-C2-3 20231211-C2-3 #T f 20231211_154649-C2-1 20231211-C2-1 #T f 20231211_162655-C2-1 20231211-C2-1 #T f 20231211_162705-C2-2 20231211-C2-2 #T f 20231211_163950-C2-3 20231211-C2-3 #T f 20231211_163957-C2-4 20231211-C2-4 #T f 20231211_170312-C2-5 20231211-C2-5 #T f 20231211_170325-C2-6 20231211-C2-6 #T f 20231211_180310-C2-7 20231211-C2-7 #T f 20231211_180320-C2-8 20231211-C2-8 #T f 20231212_171820-C2-1 20231212-C2-1 #T f 20231212_171827-C2-2 20231212-C2-2 #T f 20231212_180649-C2-3 20231212-C2-3 #T f 20231213_111145-C2-1 20231213-C2-1 #T f 20231213_111153-C2-2 20231213-C2-2 #T f 20231214_173736-C2-1 20231214-C2-1 #T f 20231214_173744-C2-2 20231214-C2-2 #T f 20231214_181504-C2-3 20231214-C2-3 #T f 20231214_181507-C2-4 20231214-C2-4 #T f 20231215_193205-C2-5 20231215-C2-5 #T f 20231215_193211-C2-6 20231215-C2-6 #T #T f 20231218_154819-C2-1 20231218-C2-1 #T f 20231218_154822-C2-2 20231218-C2-2 #T f 20231218_180233-C2-3 20231218-C2-3 #T f 20231218_180238-C2-4 20231218-C2-4 #T f 20231218_184749-C2-5 20231218-C2-5 #T #T cd ~/2023.2-C2/ #T 'ls' 2023*.jpg | sort | sed -e 's/jpg/djvu/g' | tee /tmp/odjvus #T djvm -create C2-quadros.djvu $(cat /tmp/odjvus) #T make C2-quadros.pdf #T # (find-pdf-page "~/2023.2-C2/C2-quadros.pdf" 59) #T # (find-pdf-page "~/2023.2-C2/C2-quadros.pdf" 61) #T #T rsync -avvz -e ssh \ #T *.jpg *.png C2-quadros.pdf \ #T edrx@linode:slow_html/2023.2-C2 #T rsync -avvz -e ssh \ #T *.jpg *.png C2-quadros.pdf \ #T edrx@linode:public_html/2023.2-C2 #T #T # (find-linodesfile "2023.2-C2/") #T # (find-linodepfile "2023.2-C2/") #T http://anggtwu.net/2023.2-C2/C2-quadros.pdf #T * (eepitch-linode) #T * (eepitch-kill) #T * (eepitch-linode) #T cd ~/public_html/ #T makepageindexhtmls #T #T # http://anggtwu.net/2023.2-C2/ #T # http://anggtwu.net/2023.2-C2/C2-quadros.pdf # Local Variables: # coding: utf-8-unix # End: