pub / ktistec-tweaks

Tweaks for the ActivityPub server ktistec
git clone https://src.jayvii.de/pub/ktistec-tweaks.git
Home | Log | Files | Exports | Refs | Submodules | README | RSS

Makefile (1101B)


      1 minify-css:
      2 	cat css/purpleish.css | \
      3 		sed -r ':a; s%(.*)/\*.*\*/%\1%; ta; /\/\*/ !b; N; ba' | \
      4 		tr -d '\t' | \
      5 		tr -d '\n' | \
      6 		tr -s ' ' ' ' | \
      7 		sed -E \
      8 			-e 's/\s*;\s*/;/g' \
      9 			-e 's/\s*:\s*/:/g' \
     10 			-e 's/\s*\{\s*/{/g' \
     11 			-e 's/\s*\}\s*/}/g' \
     12 			-e 's/\s*,\s*/,/g' \
     13 			-e 's/\s*>\s*/>/g' \
     14 			-e 's/\s*<\s*/</g' | \
     15 		tee css/purpleish.min.css > /dev/null
     16 	cat css/visibility.css | \
     17 		sed -r ':a; s%(.*)/\*.*\*/%\1%; ta; /\/\*/ !b; N; ba' | \
     18 		tr -d '\t' | \
     19 		tr -d '\n' | \
     20 		tr -s ' ' ' ' | \
     21 		sed -E \
     22 			-e 's/\s*;\s*/;/g' \
     23 			-e 's/\s*:\s*/:/g' \
     24 			-e 's/\s*\{\s*/{/g' \
     25 			-e 's/\s*\}\s*/}/g' \
     26 			-e 's/\s*,\s*/,/g' \
     27 			-e 's/\s*>\s*/>/g' \
     28 			-e 's/\s*<\s*/</g' | \
     29 		tee css/visibility.min.css > /dev/null
     30 	cat css/mobile.css | \
     31 		sed -r ':a; s%(.*)/\*.*\*/%\1%; ta; /\/\*/ !b; N; ba' | \
     32 		tr -d '\t' | \
     33 		tr -d '\n' | \
     34 		tr -s ' ' ' ' | \
     35 		sed -E \
     36 			-e 's/\s*;\s*/;/g' \
     37 			-e 's/\s*:\s*/:/g' \
     38 			-e 's/\s*\{\s*/{/g' \
     39 			-e 's/\s*\}\s*/}/g' \
     40 			-e 's/\s*,\s*/,/g' \
     41 			-e 's/\s*>\s*/>/g' \
     42 			-e 's/\s*<\s*/</g' | \
     43 		tee css/mobile.min.css > /dev/null
     44