2013-01-15 18:30:20 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
if [ -z "$1" ]; then
|
|
|
|
echo "version required"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
version=$1
|
|
|
|
nv=scribus-${version}
|
|
|
|
|
2015-05-07 20:54:06 +00:00
|
|
|
archive=${nv}.tar.bz2
|
2013-01-15 18:30:20 +00:00
|
|
|
freearchive=${nv}-free.tar.xz
|
|
|
|
|
2015-05-07 20:54:06 +00:00
|
|
|
[ -f ${archive} ] || curl -OL http://downloads.sourceforge.net/scribus/scribus-${version}.tar.bz2
|
2013-01-15 18:30:20 +00:00
|
|
|
|
|
|
|
echo "Extracting sources ..."
|
|
|
|
rm -rf ${nv}
|
2015-05-07 20:54:06 +00:00
|
|
|
tar -xf $archive
|
2013-01-15 18:30:20 +00:00
|
|
|
|
|
|
|
pushd ${nv}
|
|
|
|
|
|
|
|
# remove docs
|
|
|
|
rm -r scribus/doc
|
|
|
|
|
|
|
|
# remove non-free profile
|
|
|
|
rm scribus/profiles/{sRGB.icm,srgb.license}
|
|
|
|
|
|
|
|
# remove non-free content from swatches
|
|
|
|
rm resources/swatches/*.eps
|
|
|
|
rm resources/swatches/dtp-studio-free-palettes-license.rtf
|
2013-08-19 16:18:43 +00:00
|
|
|
|
2013-01-15 18:30:20 +00:00
|
|
|
rm resources/swatches/GiveLife_Color_System_*.xml
|
|
|
|
rm resources/swatches/givelife_colors_license.rtf
|
|
|
|
|
2013-08-19 16:18:43 +00:00
|
|
|
rm resources/swatches/Federal_Identity_Program.xml
|
|
|
|
|
2014-06-06 21:43:10 +00:00
|
|
|
# Remove non-free (CC-BY-SA-NC) dot files
|
|
|
|
rm resources/editorconfig/dot.*
|
|
|
|
|
2015-05-07 20:54:06 +00:00
|
|
|
# Remove non-free dic files
|
|
|
|
rm resources/dicts/hyph_fi.dic
|
|
|
|
|
|
|
|
# Remove license unknown dic files
|
|
|
|
rm resources/dicts/hyph_ia.dic resources/dicts/hyph_sv.dic
|
|
|
|
|
2013-01-15 18:30:20 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
echo "Creating sources ..."
|
|
|
|
tar cf - ${nv} | xz > ${freearchive}
|