RPM build added, generated with "./autogen.sh rpm".
authorshort <>
Fri, 5 Nov 1999 03:02:19 +0000 (03:02 +0000)
committershort <>
Fri, 5 Nov 1999 03:02:19 +0000 (03:02 +0000)
Makefile.am
autogen.sh
configure.in

index 4f7d77c..2b60286 100644 (file)
@@ -4,7 +4,7 @@ AUTOMAKE_OPTIONS = dist-tarZ
 SUBDIRS = intl . po
 #?: @@INTLSUB@@ src @@POSUB@@
 
 SUBDIRS = intl . po
 #?: @@INTLSUB@@ src @@POSUB@@
 
-EXTRA_DIST = autogen.sh mdsms.1.c mdsms.1.in ChangeLog need-declaration.m4 ABOUT-NLS
+EXTRA_DIST = autogen.sh mdsms.1.c mdsms.1.in ChangeLog need-declaration.m4 ABOUT-NLS mdsms.spec.in
 
 CLEANFILES = ChangeLog mdsms.1 mdsms.1.in2
 
 
 CLEANFILES = ChangeLog mdsms.1 mdsms.1.in2
 
index e17d0ce..f9a6f9f 100755 (executable)
@@ -6,6 +6,23 @@
 # /lib/gconv/ISO8859-2.so is apparently clashing with EFence. :-(
 CONFDEFS="--enable-maintainer-mode --enable-debug --without-efence"
 
 # /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 "*~"` \
 # if [ -f Makefile ];then touch ChangeLog;make maintainer-clean;fi
 rm -r -f \
        `find -name "*~"` \
@@ -30,6 +47,7 @@ rm -r -f \
        config.log \
        config.h \
        confdefs.h \
        config.log \
        config.h \
        confdefs.h \
+       conftest* \
        autoh[0-9]* \
        config.cache \
        config.h.in \
        autoh[0-9]* \
        config.cache \
        config.h.in \
@@ -46,8 +64,8 @@ rm -r -f \
        mdsms.1 \
        mdsms.1.in2 \
        mdsms \
        mdsms.1 \
        mdsms.1.in2 \
        mdsms \
-       mdsms-[0-9]*.tar.gz \
-       mdsms-[0-9]*.tar.Z \
+       mdsms-[0-9]* \
+       mdsms.spec \
        manfmt \
        .deps \
        ChangeLog \
        manfmt \
        .deps \
        ChangeLog \
@@ -74,7 +92,14 @@ touch ChangeLog
 automake --gnu -c --add-missing
 rm -f ChangeLog
 cp $HOME/src/misc/LGPL2.1 COPYING
 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
 
 autoheader
 autoconf
 
-if [ "$1" != dist ];then ./configure $CONFDEFS;fi
+if [ "$1" = dist ];then
+  exit
+fi
+./configure $CONFDEFS
index 4f4b2e7..e90c5d6 100644 (file)
@@ -263,5 +263,6 @@ fi
 AC_SUBST(LIBOBJS)
 
 AC_OUTPUT([Makefile
 AC_SUBST(LIBOBJS)
 
 AC_OUTPUT([Makefile
+mdsms.spec
 po/Makefile.in
 intl/Makefile],[sed -e "/POTFILES =/r po/POTFILES" -e "s/ ChangeLog / /" po/Makefile.in > po/Makefile])
 po/Makefile.in
 intl/Makefile],[sed -e "/POTFILES =/r po/POTFILES" -e "s/ ChangeLog / /" po/Makefile.in > po/Makefile])