mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 02:46:16 +01:00
c200c1d1df
There seems to be little point in substituting the version number into README (using autotools). Rename it to README.md and distribute that verbatim (with autotools and Meson) instead. Autotools still requires that README exists, so leave a stub README file in place which redirects people to README.md. This can be dropped when we drop autotools support. Signed-off-by: Philip Withnall <withnall@endlessm.com>
41 lines
715 B
Bash
Executable File
41 lines
715 B
Bash
Executable File
#!/bin/sh
|
|
|
|
VERSION=$1
|
|
|
|
if [ ! -f glib-$VERSION.tar.gz ]; then
|
|
echo "ERROR: glib-$VERSION.tar.gz does not exist..."
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
|
|
echo "Checking glib-$VERSION.tar.gz..."
|
|
tar xfz glib-$VERSION.tar.gz
|
|
|
|
|
|
for file in INSTALL NEWS
|
|
do
|
|
echo -n "$file... "
|
|
if [ "x`grep $VERSION glib-$VERSION/$file | wc -l | awk -F' ' '{print $1}'`" = "x0" ]; then
|
|
echo "failed."
|
|
#exit 1
|
|
else
|
|
echo "ok"
|
|
fi
|
|
done
|
|
|
|
echo -n "INSTALL..."
|
|
if [ "x`grep $VERSION glib-$VERSION/INSTALL | wc -l | awk -F' ' '{print $1}'`" = "x2" ]; then
|
|
echo "ok"
|
|
else
|
|
echo "failed."
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo "Number of lines in created documentation files:"
|
|
|
|
wc -l glib-$VERSION/docs/reference/*/html/*.html | grep total
|
|
|
|
rm -rf glib-$VERSION
|