fi; \
dpkg-distaddfile -f$(DIR)/debian/files $$f.html.tar.gz byhand -; \
done
- set -e; \
+ set -e;\
version=`sed -n 's/^Version: //p' $(DIR)/debian/tmp-dev/DEBIAN/control`; \
file=dpkg-$${version}.tar.gz; \
- cp $(DIR)/../dpkg_$${version}.tar.gz $(DIR)/../$${file}; \
- dpkg-distaddfile -f$(DIR)/debian/files $${file} byhand -;
+ if [ -f $(DIR)/../dpkg_$${version}.tar.gz ]; then \
+ cp $(DIR)/../dpkg_$${version}.tar.gz $(DIR)/../$${file}; \
+ dpkg-distaddfile -f$(DIR)/debian/files $${file} byhand -; \
+ fi
binary-arch: binary-trees
$(checkdir)
#include <config.h>
#include <dpkg.h>
-#include <version.h>
void showcopyright(const struct cmdinfo *c, const char *v) {
int fd;
execlp(CAT,CAT,"-",(char*)0);
ohshite(_("unable to exec cat for displaying GPL file"));
}
-
-char *libdpkgver(void) {
- return DPKG_VERSION;
-}
debug(dbg_eachfile,"ensure_pathname_nonexisting running rm -rf");
waitsubproc(c1,"rm cleanup",0);
}
-
-void check_libver (void) {
- int c;
- if (!strcmp(DPKG_VERSION, libdpkgver())) return;
- /* ooh, we have a version mismatch with the library,
- * continue, but warn LOUDLY about possible problems.
- */
- fprintf(stderr, _("\
-WARNING: A mismatch between dpkg and libdpkg.so has\n\
-been detected. Somehow, your system has a different\n\
-version of dpkg than the library that is uses. This\n\
-may not cause any problems, but it does reflect a\n\
-serious condition. You should really reinstall the dpkg\n\
-package before continuing.\n\
-\n\
-Press 'Q' to exit, any other key to continue: "));
- c= getc(stdin);
- if (c == 'q' || c == 'Q')
- ohshite(_("Quitting at user request"));
- return;
-}
umask(022); /* Make sure all our status databases are readable. */
- check_libver();
-
for (argvs=argv+1; (argp= *argvs) && *argp++=='-'; argvs++) {
if (*argp++=='-') {
if (!strcmp(argp,"-")) break;