X-Git-Url: http://git.jankratochvil.net/?p=mdsms.git;a=blobdiff_plain;f=autogen.sh;h=083be7ed83a54db369db9f288dd5969061e8e4cc;hp=e17d0cec6b514e21ee8f7227afc071d62068dd35;hb=77683788c9eace58e03d22df4d523bc6afe6524d;hpb=f6eb34fe532a8392a1aa3a0f2d93e16896b8eba5 diff --git a/autogen.sh b/autogen.sh index e17d0ce..083be7e 100755 --- a/autogen.sh +++ b/autogen.sh @@ -6,66 +6,85 @@ # /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 -' + scp -v mdsms-[0-9]* atrey.karlin.mff.cuni.cz:WWW/sw/ + 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 \ - config.status \ - config.sub \ - config.log \ - config.h \ - confdefs.h \ - autoh[0-9]* \ - config.cache \ - config.h.in \ - stamp-h \ - stamp-h.in \ - aclocal.m4 \ - getopt.c \ - getopt.h \ - getopt1.c \ - need-declaration.m4 \ - strdup.c \ - usleep.c \ - memmove.c \ - mdsms.1 \ - mdsms.1.in2 \ - mdsms \ - mdsms-[0-9]*.tar.gz \ - mdsms-[0-9]*.tar.Z \ - manfmt \ - .deps \ - ChangeLog \ - *.o \ + `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 \ + config.status \ + config.sub \ + config.log \ + config.h \ + confdefs.h \ + conftest* \ + autoh[0-9]* \ + config.cache \ + config.h.in \ + stamp-h \ + stamp-h.in \ + aclocal.m4 \ + getopt.c \ + getopt.h \ + getopt1.c \ + need-declaration.m4 \ + strdup.c \ + usleep.c \ + memmove.c \ + mdsms.1 \ + mdsms.1.in2 \ + mdsms \ + mdsms-[0-9]* \ + mdsms.spec \ + manfmt \ + .deps \ + ChangeLog \ + *.o \ if [ "$1" = clean ];then exit;fi - d="`pwd`" - (cd $HOME/src/misc - (cd getopt - cp getopt.c getopt.h getopt1.c $d - ) - (cd macros - cp need-declaration.m4 $d - ) - cp strdup.c usleep.c memmove.c $d - ) + d="`pwd`" + (cd $HOME/src/misc + (cd getopt + cp getopt.c getopt.h getopt1.c $d + ) + (cd macros + cp need-declaration.m4 $d + ) + cp strdup.c usleep.c memmove.c $d + ) aclocal -I . gettextize --copy @@ -74,7 +93,14 @@ touch ChangeLog automake --gnu -c --add-missing rm -f ChangeLog cp $HOME/src/misc/LGPL2.1 COPYING +ed po/Makefile.in.in <