PERFORCE change 33081 for review
Dag-Erling Smorgrav
des at FreeBSD.org
Fri Jun 13 01:22:46 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=33081
Change 33081 by des at des.at.des.thinksec.com on 2003/06/13 01:22:25
Streamline the distribution process.
Affected files ...
.. //depot/projects/openpam/MANIFEST#18 edit
.. //depot/projects/openpam/dist.sh#9 edit
Differences ...
==== //depot/projects/openpam/MANIFEST#18 (text+ko) ====
@@ -1,5 +1,5 @@
#
-# $P4: //depot/projects/openpam/MANIFEST#17 $
+# $P4: //depot/projects/openpam/MANIFEST#18 $
#
CREDITS
HISTORY
@@ -12,19 +12,29 @@
RELNOTES
aclocal.m4
autogen.sh
-bin/Makefile.am
-bin/Makefile.in
-bin/su/Makefile.am
-bin/su/Makefile.in
-bin/su/su.c
config.guess
config.h.in
config.sub
configure
configure.in
depcomp
+install-sh
+ltconfig
+ltmain.sh
+missing
+mkinstalldirs
+stamp-h.in
+bin/
+bin/Makefile.am
+bin/Makefile.in
+bin/su/
+bin/su/Makefile.am
+bin/su/Makefile.in
+bin/su/su.c
+doc/
doc/Makefile.am
doc/Makefile.in
+doc/man/
doc/man/Makefile.am
doc/man/Makefile.in
doc/man/openpam.3
@@ -72,8 +82,10 @@
doc/man/pam_verror.3
doc/man/pam_vinfo.3
doc/man/pam_vprompt.3
+include/
include/Makefile.am
include/Makefile.in
+include/security/
include/security/Makefile.am
include/security/Makefile.in
include/security/openpam.h
@@ -82,7 +94,7 @@
include/security/pam_constants.h
include/security/pam_modules.h
include/security/pam_types.h
-install-sh
+lib/
lib/Makefile.am
lib/Makefile.in
lib/openpam_borrow_cred.c
@@ -142,20 +154,20 @@
lib/pam_verror.c
lib/pam_vinfo.c
lib/pam_vprompt.c
-ltconfig
-ltmain.sh
+misc/
misc/gendoc.pl
-missing
-mkinstalldirs
+modules/
modules/Makefile.am
modules/Makefile.in
+modules/pam_deny/
modules/pam_deny/Makefile.am
modules/pam_deny/Makefile.in
modules/pam_deny/pam_deny.c
+modules/pam_permit/
modules/pam_permit/Makefile.am
modules/pam_permit/Makefile.in
modules/pam_permit/pam_permit.c
+modules/pam_unix/
modules/pam_unix/Makefile.am
modules/pam_unix/Makefile.in
modules/pam_unix/pam_unix.c
-stamp-h.in
==== //depot/projects/openpam/dist.sh#9 (text+ko) ====
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $P4: //depot/projects/openpam/dist.sh#8 $
+# $P4: //depot/projects/openpam/dist.sh#9 $
#
set -e
@@ -9,27 +9,27 @@
distname="openpam-${release}"
tarball="${distname}.tar.gz"
-gmake clean || true
-gmake distclean || true
-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
+grep '^[a-z].*/$' MANIFEST | while read dir; do
+ echo "Creating ${dir}"
+ install -d -m 0755 "${distname}/${dir}" || exit 1
+done
+grep '^[a-z].*[^/]$' MANIFEST | while read file; do
+ echo "Adding ${file}"
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}"
+for file in autogen.sh configure depcomp install-sh ltconfig ltmain.sh ; do
+ echo "Adjusting permissions for ${file}"
+ chmod a+x "${distname}/${file}"
done
-for f in configure configure.in include/security/openpam_version.h ; do
- perl -p -i -e "s/YYYYMMDD/${release}/g" "${distname}/${f}"
+(cd "${distname}" && grep -rl YYYYMMDD *) | while read file ; do
+ echo "Datestamping ${file}"
+ perl -p -i -e "s/YYYYMMDD/${release}/g" "${distname}/${file}"
done
-find "${distname}" | xargs touch -t "${release}0000"
+find "${distname}" | sort -r | xargs touch -t "${release}0000"
tar zcf "${tarball}" "${distname}"
+dd if=/dev/zero of="${tarball}" conv=notrunc bs=4 oseek=1 count=1
rm -rf "${distname}"
-gmake clean || true
-gmake distclean || true
echo
md5 "${tarball}"
More information about the p4-projects
mailing list