Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (b502673226a97dc2fa107d26185d5f4c352fff94)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Jaka Kranjc <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (b502673226a97dc2fa107d26185d5f4c352fff94)
  • Date: Tue, 17 Aug 2010 16:56:41 -0500

GIT changes to master grimoire by Jaka Kranjc <lynxlynxlynx AT sourcemage.org>:

latex/texlive-texmf/DETAILS | 5 +++++
latex/texlive-texmf/HISTORY | 5 +++++
latex/texlive-texmf/PREPARE | 8 ++++++++
latex/texlive-texmf/PRE_BUILD | 13 ++++++++++++-
4 files changed, 30 insertions(+), 1 deletion(-)

New commits:
commit b502673226a97dc2fa107d26185d5f4c352fff94
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

texlive-texmf: added queries for size and time saving

diff --git a/latex/texlive-texmf/DETAILS b/latex/texlive-texmf/DETAILS
index e366741..7f48359 100755
--- a/latex/texlive-texmf/DETAILS
+++ b/latex/texlive-texmf/DETAILS
@@ -8,6 +8,11 @@ SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SOURCE/.tar.xz}"
LICENSE[0]="LATER"
ENTERED=20090729
TMPFS=off
+if [[ $TTMF_ARCHIVE == y ]]; then
+ ARCHIVE=on
+else
+ ARCHIVE=off
+fi
KEYWORDS=""
SHORT="TeX Live Metafont package"
cat << EOF
diff --git a/latex/texlive-texmf/HISTORY b/latex/texlive-texmf/HISTORY
index 9472eee..8bd90b6 100644
--- a/latex/texlive-texmf/HISTORY
+++ b/latex/texlive-texmf/HISTORY
@@ -1,3 +1,8 @@
+2010-08-13 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * PREPARE: added explanation and queries for size saving
+ * PRE_BUILD: remove the extra pdfs if requested
+ * DETAILS: don't archive if requested
+
2010-05-01 Ismael Luceno <ismael AT sourcemage.org>
* DETAILS: fix description

diff --git a/latex/texlive-texmf/PREPARE b/latex/texlive-texmf/PREPARE
new file mode 100755
index 0000000..13189b7
--- /dev/null
+++ b/latex/texlive-texmf/PREPARE
@@ -0,0 +1,8 @@
+message &&
+message "The texlive-texmf is a very large package including a big chunk of
CTAN." &&
+message "A lot of the modules include pdfs, but also their sources in tex
format." &&
+config_query TTMF_SMALL "Do you want to remove these excess PDFs? (saves
~350M of 2.2G)" n &&
+
+message "Also, since this spell only copies the files over, the creation of
an archive" \
+message "is usually a waste of time and diskspace."
+config_query TTMF_ARCHIVE "Do you want cast to create an archive of the
spell? (saves ~1G)" n
diff --git a/latex/texlive-texmf/PRE_BUILD b/latex/texlive-texmf/PRE_BUILD
index f746946..9a93cfa 100755
--- a/latex/texlive-texmf/PRE_BUILD
+++ b/latex/texlive-texmf/PRE_BUILD
@@ -1,4 +1,15 @@
cd $BUILD_DIRECTORY &&
mk_source_dir "$SOURCE_DIRECTORY" &&
verify_file '' &&
-xz -dc $SOURCE_CACHE/$SOURCE | tar -xf -
+xz -dc $SOURCE_CACHE/$SOURCE | tar -xf - &&
+
+# find all the pdfs, strip the extension and then check if their source is
+# also present. If it is, remove the pdf.
+if [[ $TTMF_SMALL == y ]]; then
+ find "$SOURCE_DIRECTORY" -type f -iname "*.pdf" | sed 's,....$,,' |
+ while read p; do
+ if [[ -e "$p.pdf" && -e "$p.tex" ]]; then
+ rm "$p.pdf"
+ fi
+ done
+fi



  • [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (b502673226a97dc2fa107d26185d5f4c352fff94), Jaka Kranjc, 08/17/2010

Archive powered by MHonArc 2.6.24.

Top of Page