Skip to content

Commit

Permalink
Add warning about using the Github Code button and check for the subm…
Browse files Browse the repository at this point in the history
…odules

when running the configure script.
  • Loading branch information
michaelrsweet committed Mar 20, 2023
1 parent 97a4047 commit 5c06517
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ original CUPS `ippeveprinter` source code.
Getting the Code
----------------

*Do not use the ZIP file available via the Github "Code" button on the*
*main project page, as that archive is missing the libcups and PDFio submodules*
*submodules and will not compile.*

The source code is available in semi-monthly release tarballs or via the Github
repository. For a release tarball, run the following commands:

Expand Down
12 changes: 11 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dnl
dnl Configuration script for the IPP sample code.
dnl
dnl Copyright © 2014-2022 by the Printer Working Group
dnl Copyright © 2014-2023 by the Printer Working Group
dnl
dnl Licensed under Apache License v2.0. See the file "LICENSE" for more
dnl information.
Expand All @@ -18,6 +18,16 @@ dnl We need at least autoconf 2.70 for --runstatedir...
AC_PREREQ([2.70])


dnl Check for submodules...
AS_IF([test ! -d libcups -o ! -d pdfio], [
AS_IF([test -d .git], [
AC_MSG_ERROR([Run "git submodule init && git submodule update" to get the libcups and PDFio submodules.])
], [
AC_MSG_ERROR([The ZIP archive you downloaded via the Github "Code" button is missing the libcups and PDFio submodules. Please download a dated release or use Git.])
])
])


dnl Package name and version...
AC_INIT([IPPSAMPLE], [YYYY.MM], [https://github.com/istopwg/ippsample/issues], [ippsample], [http://istopwg.github.io/ippsample])
AC_CONFIG_HEADERS([config.h])
Expand Down

0 comments on commit 5c06517

Please sign in to comment.