2008-02-28 02:34:43 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ -z "$1" ]; then
|
2012-05-08 19:49:33 +02:00
|
|
|
echo "build_release <version>"
|
2008-02-28 02:34:43 +01:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
TMP=tmp.build_release
|
|
|
|
RELDIR=`pwd`/Release
|
|
|
|
VER=$1
|
|
|
|
NOW=`date +%Y-%m-%d`
|
|
|
|
|
|
|
|
echo "Version: $VER - $NOW"
|
|
|
|
|
|
|
|
DATEw=`head -n 3 wpa_supplicant/ChangeLog | tail -n 1 | sed "s/ .*//"`
|
|
|
|
DATEh=`head -n 3 hostapd/ChangeLog | tail -n 1 | sed "s/ .*//"`
|
|
|
|
|
|
|
|
if [ "$DATEw" != "$NOW" -o "$DATEh" != "$NOW" ]; then
|
|
|
|
echo "NOTE! Date mismatch in ChangeLog: wpa_supplicant $DATEw hostapd $DATEh != $NOW"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -r $TMP ]; then
|
|
|
|
echo "Temporary directory '$TMP' exists. Remove it before running this."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
mkdir $TMP
|
|
|
|
mkdir -p $RELDIR
|
|
|
|
|
2009-11-10 10:08:15 +01:00
|
|
|
git archive --format=tar --prefix=wpa-$VER/ HEAD \
|
2008-02-28 02:34:43 +01:00
|
|
|
README COPYING patches src wpa_supplicant hostapd |
|
|
|
|
gzip > $RELDIR/wpa-$VER.tar.gz
|
2009-11-10 10:08:15 +01:00
|
|
|
git archive --format=tar --prefix=hostapd-$VER/ HEAD \
|
2008-02-28 02:34:43 +01:00
|
|
|
README COPYING patches src hostapd |
|
|
|
|
gzip > $RELDIR/hostapd-$VER.tar.gz
|
2009-11-10 10:08:15 +01:00
|
|
|
git archive --format=tar --prefix=wpa_supplicant-$VER/ HEAD \
|
2010-01-16 18:04:38 +01:00
|
|
|
README COPYING patches src wpa_supplicant |
|
2008-02-28 02:34:43 +01:00
|
|
|
tar --directory=$TMP -xf -
|
|
|
|
|
|
|
|
cd $TMP
|
|
|
|
make -C wpa_supplicant-$VER/wpa_supplicant/doc/docbook man
|
|
|
|
rm -f wpa_supplicant-$VER/wpa_supplicant/doc/docbook/manpage.{links,refs}
|
|
|
|
tar czf $RELDIR/wpa_supplicant-$VER.tar.gz wpa_supplicant-$VER
|
|
|
|
cd ..
|
|
|
|
rm -r $TMP
|