diff options
author | Eric Hameleers <alien@slackware.com> | 2015-11-16 20:24:12 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2015-11-16 20:24:12 +0000 |
commit | c9a658917ef456b2d040cf349a8fa1da237ec40a (patch) | |
tree | 63c6c2810205f080bb154d39233e79d51cab3638 /libreoffice | |
parent | 63cb246ae5c9d1b9f8242684747e1dc1b1ea9a1a (diff) | |
download | asb-c9a658917ef456b2d040cf349a8fa1da237ec40a.tar.gz asb-c9a658917ef456b2d040cf349a8fa1da237ec40a.tar.xz |
libreoffice: updated gensrc.sh to 5.0.3.2
Diffstat (limited to 'libreoffice')
-rwxr-xr-x | libreoffice/build/gensrc.sh | 2 | ||||
-rwxr-xr-x | libreoffice/build/gensrc_lo50.sh | 54 | ||||
-rwxr-xr-x | libreoffice/build/gensrc_lo51.sh | 54 |
3 files changed, 109 insertions, 1 deletions
diff --git a/libreoffice/build/gensrc.sh b/libreoffice/build/gensrc.sh index e8b87139..d2c983f4 100755 --- a/libreoffice/build/gensrc.sh +++ b/libreoffice/build/gensrc.sh @@ -1,7 +1,7 @@ #!/bin/bash PRGNAM=libreoffice -VERSION=5.0.2 +VERSION=5.0.3 SUBVER=.2 STARTINDEX=6 diff --git a/libreoffice/build/gensrc_lo50.sh b/libreoffice/build/gensrc_lo50.sh new file mode 100755 index 00000000..d2c983f4 --- /dev/null +++ b/libreoffice/build/gensrc_lo50.sh @@ -0,0 +1,54 @@ +#!/bin/bash + +PRGNAM=libreoffice +VERSION=5.0.3 +SUBVER=.2 + +STARTINDEX=6 + +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= ) +echo "all:" >> $TMP_DLLST +cat $TMP_DLLST | grep -v " *#" | grep -w export | grep TARBALL | cut -f2 -d' ' | sed -e 's/.*/\t&=$(&)'/ >> $TMP_DLLST +eval $(make HAVE_JAVA6=TRUE -f $TMP_DLLST) + +# 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 -v " *#" | grep -w export | grep TARBALL | cut -f2 -d' ' ); do + + SRCURL=$(find_url $BALL) + FILE=$(eval "echo \$$BALL") + + cat <<EOT +SOURCE[$III]="\$SRCDIR/sources/$FILE" +SRCURL[$III]="$SRCURL/$FILE" +GITURI[$III]="" + +EOT + + III=$(($III+1)) + +done + +echo "# --- End of section generated by $(basename $0) ---" + +# Delete the temporary files: +rm -f $TMP_DLLST $TMP_FETCH + diff --git a/libreoffice/build/gensrc_lo51.sh b/libreoffice/build/gensrc_lo51.sh new file mode 100755 index 00000000..d2c983f4 --- /dev/null +++ b/libreoffice/build/gensrc_lo51.sh @@ -0,0 +1,54 @@ +#!/bin/bash + +PRGNAM=libreoffice +VERSION=5.0.3 +SUBVER=.2 + +STARTINDEX=6 + +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= ) +echo "all:" >> $TMP_DLLST +cat $TMP_DLLST | grep -v " *#" | grep -w export | grep TARBALL | cut -f2 -d' ' | sed -e 's/.*/\t&=$(&)'/ >> $TMP_DLLST +eval $(make HAVE_JAVA6=TRUE -f $TMP_DLLST) + +# 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 -v " *#" | grep -w export | grep TARBALL | cut -f2 -d' ' ); do + + SRCURL=$(find_url $BALL) + FILE=$(eval "echo \$$BALL") + + cat <<EOT +SOURCE[$III]="\$SRCDIR/sources/$FILE" +SRCURL[$III]="$SRCURL/$FILE" +GITURI[$III]="" + +EOT + + III=$(($III+1)) + +done + +echo "# --- End of section generated by $(basename $0) ---" + +# Delete the temporary files: +rm -f $TMP_DLLST $TMP_FETCH + |