forked from rpms/glibc
0457f649e3
* Wed Sep 16 2015 Mike FABIAN <mfabian@redhat.com> - 2.22.90-7 - Add the C.UTF-8 locale (#902094). * Wed Sep 16 2015 Carlos O'Donell <carlos@systemhalted.org> - 2.22.90-6 - Fix GCC 5 and -Werror related build failures. - Fix --install-langs bug which causes SIGABRT (#1262040).
23 lines
612 B
Bash
Executable File
23 lines
612 B
Bash
Executable File
#!/bin/bash
|
|
# Patches are in the current directory.
|
|
export QUILT_PATCHES=$PWD
|
|
# Extract source file name from sources file,
|
|
# and assume it's the same name as the directory.
|
|
source=`cat sources | sed -e 's,^.* ,,g'`
|
|
srcdir=${source%.tar.gz}
|
|
if [ "$1" == "-f" ] && [ -d "$srcdir" ]; then
|
|
echo Cleaning up $srcdir
|
|
rm -rf $srcdir
|
|
fi
|
|
if [ -d "$srcdir" ]; then
|
|
# Don't overwrite existing source directory.
|
|
echo "ERROR: Source directory $srcdir already exists. Use -f to force cleanup step."
|
|
exit 1
|
|
fi
|
|
tar zxvf $source
|
|
echo "Entering $srcdir"
|
|
pushd $srcdir
|
|
# Apply all patches.
|
|
quilt push -a
|
|
popd
|