Message Reference is now reported for each of --ring-send multipart SMSes.
[mdsms.git] / autogen.sh
index 9589652..f9a6f9f 100755 (executable)
@@ -3,19 +3,42 @@
 
 # $Id$
 
-CONFDEFS="--enable-maintainer-mode --enable-debug"
+# /lib/gconv/ISO8859-2.so is apparently clashing with EFence. :-(
+CONFDEFS="--enable-maintainer-mode --enable-debug --without-efence"
+
+if [ "$1" = rpm -o "$1" = rpmup ];then
+       ./autogen.sh
+  make
+  make dist
+  cp mdsms-[0-9]*.tar.gz /usr/src/redhat/SOURCES
+  rpm -ba --sign mdsms.spec
+       make dist-tarZ
+       rm /usr/src/redhat/SOURCES/mdsms-[0-9]*.tar.gz
+  mv /usr/src/redhat/SRPMS/mdsms-[0-9]*-*.src.rpm .
+  mv /usr/src/redhat/RPMS/i386/mdsms-[0-9]*-*.i386.rpm .
+       ls -l mdsms-[0-9]*
+       if [ "$1" = rpm ];then exit;fi
+       echo "Uploading $[`cat mdsms-[0-9]*|wc -c`] bytes..."
+       tar cf - mdsms-[0-9]*|ssh twilight ssh atrey.karlin.mff.cuni.cz 'cd WWW/sw\;tar xvvf -'
+       exit
+fi
 
 # if [ -f Makefile ];then touch ChangeLog;make maintainer-clean;fi
 rm -r -f \
        `find -name "*~"` \
        errs* \
+       `find po -type f -not '(' -name POTFILES.in -o -name "*.po" -o -path "po/CVS*" ')'` \
+       intl \
        install-sh \
        mkinstalldirs \
        missing \
        INSTALL \
        COPYING \
+       ABOUT-NLS \
        Makefile \
        Makefile.in \
+       */Makefile \
+       */Makefile.in \
        configure \
        configure.scan \
        config.guess \
@@ -23,6 +46,8 @@ rm -r -f \
        config.sub \
        config.log \
        config.h \
+       confdefs.h \
+       conftest* \
        autoh[0-9]* \
        config.cache \
        config.h.in \
@@ -39,8 +64,8 @@ rm -r -f \
        mdsms.1 \
        mdsms.1.in2 \
        mdsms \
-       mdsms-[0-9]*.tar.gz \
-       mdsms-[0-9]*.tar.Z \
+       mdsms-[0-9]* \
+       mdsms.spec \
        manfmt \
        .deps \
        ChangeLog \
@@ -61,12 +86,20 @@ if [ "$1" = clean ];then exit;fi
        )
 
 aclocal -I .
+gettextize --copy
 autoheader
 touch ChangeLog
 automake --gnu -c --add-missing
 rm -f ChangeLog
 cp $HOME/src/misc/LGPL2.1 COPYING
+ed po/Makefile.in.in <<HERE
+,s/prefix = @/prefix = \$(DESTDIR)@/g
+w
+HERE
 autoheader
 autoconf
 
-if [ "$1" != dist ];then ./configure $CONFDEFS;fi
+if [ "$1" = dist ];then
+  exit
+fi
+./configure $CONFDEFS