PERFORCE change 32825 for review

Dag-Erling Smorgrav des at FreeBSD.org
Sun Jun 8 16:52:56 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=32825

Change 32825 by des at des.at.des.thinksec.com on 2003/06/08 16:52:07

	Have dist.sh automatically set the release date.
	Touch all files in the distribution directory before rolling the
	release to avoid false negative dependency checks later.

Affected files ...

.. //depot/projects/openpam/dist.sh#8 edit
.. //depot/projects/openpam/include/security/openpam_version.h#10 edit

Differences ...

==== //depot/projects/openpam/dist.sh#8 (text+ko) ====

@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $P4: //depot/projects/openpam/dist.sh#7 $
+# $P4: //depot/projects/openpam/dist.sh#8 $
 #
 
 set -e
@@ -11,17 +11,21 @@
 
 gmake clean || true
 gmake distclean || true
-./autogen.sh
-./configure --with-pam-su --with-pam-unix
+sh -e autogen.sh
+sh configure --with-pam-su --with-pam-unix
 gmake
 install -d -m 0755 "${distname}"
 grep -v '^#' MANIFEST | while read file; do
     install -d -m 0755 "${distname}/$(dirname ${file})" || exit 1
-    install -c -m "${file}" "${distname}/${file}" || exit 1
+    install -c -m 0644 "${file}" "${distname}/${file}" || exit 1
 done
 for f in autogen.sh configure depcomp install-sh ltconfig ltmain.sh ; do
     chmod a+x "${distname}/${f}"
 done
+for f in configure configure.in include/security/openpam_version.h ; do
+    perl -p -i -e "s/YYYYMMDD/${release}/g" "${distname}/${f}"
+done
+find "${distname}" | xargs touch -t "${release}0000"
 tar zcf "${tarball}" "${distname}"
 rm -rf "${distname}"
 gmake clean || true

==== //depot/projects/openpam/include/security/openpam_version.h#10 (text+ko) ====

@@ -31,14 +31,14 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $P4: //depot/projects/openpam/include/security/openpam_version.h#9 $
+ * $P4: //depot/projects/openpam/include/security/openpam_version.h#10 $
  */
 
 #ifndef _OPENPAM_VERSION_H_INCLUDED
 #define _OPENPAM_VERSION_H_INCLUDED
 
 #define _OPENPAM
-#define _OPENPAM_VERSION	20030601
+#define _OPENPAM_VERSION	YYYYMMDD
 #define _OPENPAM_RELEASE	"Digitalis"
 
 #endif


More information about the p4-projects mailing list