浏览代码

automatically update the TeX hash files to make sure the installed .enc files are immediately available

Ralf S. Engelschall 19 年之前
父节点
当前提交
f7d9b1d064
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      lcdf-typetools/lcdf-typetools.spec

+ 10 - 0
lcdf-typetools/lcdf-typetools.spec

@@ -168,3 +168,13 @@ AutoReqProv:  no
 %clean
     rm -rf $RPM_BUILD_ROOT
 
+%post
+    #   update TeX hashes
+    $RPM_INSTALL_PREFIX/bin/texhash >/dev/null 2>&1 || true
+    exit 0
+
+%postun
+    #   update TeX hashes
+    $RPM_INSTALL_PREFIX/bin/texhash >/dev/null 2>&1 || true
+    exit 0
+