From 9b023cd530abe6ee2a9a7ba2a09f45d456aa2069 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 4 Dec 2005 10:57:35 +0000 Subject: Support 'make lsm' to generate a .lsm file for ftp.ibiblio.com:/pub/Linux uploads. This is meant to replace the insufficient rpm2lsm script. svn path=/branches/BRANCH_6-3/; revision=4502 --- Makefile.am | 4 ++++ configure.ac | 2 +- genlsm.sh.in | 32 ++++++++++++++++++++++++++++++++ specgen.sh | 3 +++ 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 genlsm.sh.in diff --git a/Makefile.am b/Makefile.am index 764ca606..2d234b77 100644 --- a/Makefile.am +++ b/Makefile.am @@ -147,6 +147,10 @@ dist-hook: cd $(distdir) && find $(distdirs) po -name .svn -type d -prune -exec rm -rf '{}' ';' cd $(distdir) && find $(distdirs) po -name '*~' -exec rm -f '{}' ';' +.PHONY: lsm +lsm: genlsm.sh dist + $(SHELL) genlsm.sh >$(PACKAGE)-$(VERSION).lsm + # The following sets edit modes for GNU EMACS. # Local Variables: # compile-command:"configure" diff --git a/configure.ac b/configure.ac index e80759ca..f7441904 100644 --- a/configure.ac +++ b/configure.ac @@ -767,7 +767,7 @@ if test "$needtrio" = 1 ; then fi dnl ----------------------------------------------------------------' -AC_CONFIG_FILES([Makefile m4/Makefile po/Makefile.in]) +AC_CONFIG_FILES([Makefile m4/Makefile po/Makefile.in genlsm.sh]) AC_OUTPUT dnl Local Variables: diff --git a/genlsm.sh.in b/genlsm.sh.in new file mode 100644 index 00000000..4ce514c0 --- /dev/null +++ b/genlsm.sh.in @@ -0,0 +1,32 @@ +#! /bin/sh +# @configure_input@ + +# WARNING: +# WARNING: If you change the description, also change specgen.sh! +# WARNING: + +cat <