drop custom font
authorGuillaume Castagnino <casta@xwing.info>
Tue, 27 Aug 2019 14:26:11 +0000 (16:26 +0200)
committerGuillaume Castagnino <casta@xwing.info>
Tue, 27 Aug 2019 14:26:11 +0000 (16:26 +0200)
19 files changed:
dist-font/cm-data/99-font.sh.addon [deleted file]
dist-font/cm-data/IBMPlexSans/.uuid [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-Bold.ttf [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-BoldItalic.ttf [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-ExtraLight.ttf [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-ExtraLightItalic.ttf [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-Italic.ttf [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-Light.ttf [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-LightItalic.ttf [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-Medium.ttf [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-MediumItalic.ttf [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-Regular.ttf [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-SemiBold.ttf [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-SemiBoldItalic.ttf [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-Text.ttf [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-TextItalic.ttf [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-Thin.ttf [deleted file]
dist-font/cm-data/IBMPlexSans/IBMPlexSans-ThinItalic.ttf [deleted file]
dist-font/cm.sh [deleted file]

diff --git a/dist-font/cm-data/99-font.sh.addon b/dist-font/cm-data/99-font.sh.addon
deleted file mode 100755 (executable)
index 402689e..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/sbin/sh
-#
-# ADDOND_VERSION=2
-#
-# /system/addon.d/99-font.sh
-#
-
-# we partially use the script at install, if so, $SYSTEM is allready defined
-if [ -z $SYSTEM ]; then
-  . /tmp/backuptool.functions
-else
-  S=$SYSTEM
-fi
-if [ -z $backuptool_ab ]; then
-  SYS=$S
-  TMP="/tmp"
-else
-  SYS="/postinstall/$S"
-  TMP="/postinstall/tmp"
-fi
-
-# path is needed when running from recovery (at install)
-export PATH="${PATH}:$S/bin:$S/xbin"
-
-list_files() {
-cat <<EOF
-fonts/IBMPlexSans-Black.ttf
-fonts/IBMPlexSans-BlackItalic.ttf
-fonts/IBMPlexSans-Bold.ttf
-fonts/IBMPlexSans-BoldItalic.ttf
-fonts/IBMPlexSans-Hairline.ttf
-fonts/IBMPlexSans-HairlineItalic.ttf
-fonts/IBMPlexSans-Heavy.ttf
-fonts/IBMPlexSans-HeavyItalic.ttf
-fonts/IBMPlexSans-Italic.ttf
-fonts/IBMPlexSans-Light.ttf
-fonts/IBMPlexSans-LightItalic.ttf
-fonts/IBMPlexSans-Medium.ttf
-fonts/IBMPlexSans-MediumItalic.ttf
-fonts/IBMPlexSans-Regular.ttf
-fonts/IBMPlexSans-Semibold.ttf
-fonts/IBMPlexSans-SemiboldItalic.ttf
-fonts/IBMPlexSans-Thin.ttf
-fonts/IBMPlexSans-ThinItalic.ttf
-EOF
-}
-
-case "$1" in
-  backup)
-    list_files | while read FILE DUMMY; do
-      backup_file $S/"$FILE"
-    done
-  ;;
-  restore)
-    list_files | while read FILE REPLACEMENT; do
-      R=""
-      [ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
-      [ -f "$C/$S/$FILE" ] && restore_file $S/"$FILE" "$R"
-    done
-  ;;
-  pre-backup)
-    # Stub
-  ;;
-  post-backup)
-    # Stub
-  ;;
-  pre-restore)
-    # Stub
-  ;;
-  post-restore)
-    # update fonts.xml
-    cp -p "$SYS/etc/fonts.xml" "$SYS/etc/fonts.xml.bak"
-    sed -i -e "s/Roboto-/IBMPlexSans-/g" \
-        "$SYS/etc/fonts.xml"
-    # Fix ownership/permissions
-    for i in $(list_files); do
-      chown root:root "$SYS/$i"
-      chmod 644 "$SYS/$i"
-      chmod 755 "$(dirname "$SYS/$i")"
-    done
-  ;;
-esac
diff --git a/dist-font/cm-data/IBMPlexSans/.uuid b/dist-font/cm-data/IBMPlexSans/.uuid
deleted file mode 100644 (file)
index 5949321..0000000
+++ /dev/null
@@ -1 +0,0 @@
-db0429c8-b4b1-4467-9896-c04eaba7b86e
\ No newline at end of file
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Bold.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Bold.ttf
deleted file mode 100644 (file)
index eba206b..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Bold.ttf and /dev/null differ
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-BoldItalic.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-BoldItalic.ttf
deleted file mode 100644 (file)
index 7f69bff..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-BoldItalic.ttf and /dev/null differ
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-ExtraLight.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-ExtraLight.ttf
deleted file mode 100644 (file)
index 187fcac..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-ExtraLight.ttf and /dev/null differ
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-ExtraLightItalic.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-ExtraLightItalic.ttf
deleted file mode 100644 (file)
index e9e6871..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-ExtraLightItalic.ttf and /dev/null differ
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Italic.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Italic.ttf
deleted file mode 100644 (file)
index c690ee7..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Italic.ttf and /dev/null differ
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Light.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Light.ttf
deleted file mode 100644 (file)
index 6cee3f5..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Light.ttf and /dev/null differ
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-LightItalic.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-LightItalic.ttf
deleted file mode 100644 (file)
index 807554e..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-LightItalic.ttf and /dev/null differ
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Medium.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Medium.ttf
deleted file mode 100644 (file)
index 79271e6..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Medium.ttf and /dev/null differ
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-MediumItalic.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-MediumItalic.ttf
deleted file mode 100644 (file)
index f78e202..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-MediumItalic.ttf and /dev/null differ
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Regular.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Regular.ttf
deleted file mode 100644 (file)
index 705fdf6..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Regular.ttf and /dev/null differ
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-SemiBold.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-SemiBold.ttf
deleted file mode 100644 (file)
index a01c128..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-SemiBold.ttf and /dev/null differ
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-SemiBoldItalic.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-SemiBoldItalic.ttf
deleted file mode 100644 (file)
index d5ac121..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-SemiBoldItalic.ttf and /dev/null differ
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Text.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Text.ttf
deleted file mode 100644 (file)
index b39f143..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Text.ttf and /dev/null differ
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-TextItalic.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-TextItalic.ttf
deleted file mode 100644 (file)
index fecc568..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-TextItalic.ttf and /dev/null differ
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Thin.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Thin.ttf
deleted file mode 100644 (file)
index 086f5b7..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-Thin.ttf and /dev/null differ
diff --git a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-ThinItalic.ttf b/dist-font/cm-data/IBMPlexSans/IBMPlexSans-ThinItalic.ttf
deleted file mode 100644 (file)
index e33878b..0000000
Binary files a/dist-font/cm-data/IBMPlexSans/IBMPlexSans-ThinItalic.ttf and /dev/null differ
diff --git a/dist-font/cm.sh b/dist-font/cm.sh
deleted file mode 100755 (executable)
index 35cafbc..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/sbin/sh
-
-set -e
-
-# $SYSTEM set by the caller
-
-cd "$(dirname $0)"
-
-export PATH="${PATH}:${SYSTEM}/bin:${SYSTEM}/xbin"
-
-# install iptables script
-echo "Installing font"
-cp cm-data/IBMPlexSans/IBMPlexSans*.ttf ${SYSTEM}/fonts/
-chown root:root ${SYSTEM}/fonts/IBMPlexSans*.ttf
-chmod 750 ${SYSTEM}/fonts/IBMPlexSans*.ttf
-
-# install restore script
-echo "Installing restore script"
-cp cm-data/99-font.sh.addon ${SYSTEM}/addon.d/99-font.sh
-chown root:root ${SYSTEM}/addon.d/99-font.sh
-chmod 755 ${SYSTEM}/addon.d/99-font.sh
-
-# call restore script post to remove bloat
-export SYSTEM
-${SYSTEM}/addon.d/99-font.sh post-restore
-
-echo "Done"
-