summaryrefslogtreecommitdiffstats
path: root/libreoffice
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2014-12-20 12:30:27 +0000
committer Eric Hameleers <alien@slackware.com>2014-12-20 12:30:27 +0000
commit0d4d1880ddfae2f6bfb36ded8da66fde13236a0a (patch)
tree4d2fd37070ccf7ce48267e9ecbcc07e13329fb8c /libreoffice
parent92b3f114eee84f9fbe042a87e5211c64663ed423 (diff)
downloadasb-0d4d1880ddfae2f6bfb36ded8da66fde13236a0a.tar.gz
asb-0d4d1880ddfae2f6bfb36ded8da66fde13236a0a.tar.xz
Initial revision
Diffstat (limited to 'libreoffice')
-rwxr-xr-xlibreoffice/build/gensrc_lo43.sh51
1 files changed, 51 insertions, 0 deletions
diff --git a/libreoffice/build/gensrc_lo43.sh b/libreoffice/build/gensrc_lo43.sh
new file mode 100755
index 00000000..5c568715
--- /dev/null
+++ b/libreoffice/build/gensrc_lo43.sh
@@ -0,0 +1,51 @@
+#!/bin/bash
+
+PRGNAM=libreoffice
+VERSION=4.3.5
+SUBVER=.2
+
+STARTINDEX=8
+
+III=$STARTINDEX
+
+echo "# --- Start of section generated by $(basename $0) ---"
+echo "# External sources for $PRGNAM-$VERSION$SUBVER"
+echo ""
+
+# Two temp files to store download data:
+TMP_DLLST=$(mktemp -t lo_XXXXXX)
+TMP_FETCH=$(mktemp -t lo_XXXXXX)
+
+# Download necessary data files:
+wget -q -O - "http://cgit.freedesktop.org/libreoffice/core/plain/download.lst?id=$(echo $PRGNAM-$VERSION$SUBVER)" > $TMP_DLLST
+wget -q -O - "http://cgit.freedesktop.org/libreoffice/core/plain/Makefile.fetch?id=$(echo $PRGNAM-$VERSION$SUBVER)" > $TMP_FETCH
+
+# Get the names of the tarballs we need:
+eval $( wget -q -O - "http://cgit.freedesktop.org/libreoffice/core/plain/configure.ac?id=$(echo $PRGNAM-$VERSION$SUBVER)" | grep UNOWINREG_DLL= )
+eval $( cat $TMP_DLLST | grep "^export " | grep _TARBALL | grep -v "filter " | grep -v MOZ_ZIP | sed -e 's/^export //' -e 's/ := /=/' )
+
+# Find the download site for a given tarball:
+find_url() {
+ cat $TMP_FETCH | sed -n "/$1/,/fetch_Download_item/s/^.*fetch_Download_item[^,]*,\([^,]*\),.*$/\1/p"
+}
+
+for BALL in UNOWINREG_DLL $( cat $TMP_DLLST | grep "^export " | grep _TARBALL | grep -v "filter " | grep -v MOZ_ZIP | sed -e 's/^export //' -e 's/ := .*$//' ); do
+
+ SRCURL=$(find_url $BALL)
+ FILE=$(eval "echo \$$BALL")
+
+ cat <<EOT
+SOURCE[$III]="\$SRCDIR/sources43/$FILE"
+SRCURL[$III]="$SRCURL/$FILE"
+
+EOT
+
+ III=$(($III+1))
+
+done
+
+echo "# --- End of section generated by $(basename $0) ---"
+
+# Delete the temporary files:
+rm -f $TMP_DLLST $TMP_FETCH
+