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. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@255 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
2f755d1e37
commit
a3c9744349
12
dist.sh
12
dist.sh
|
@ -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 @@ tarball="${distname}.tar.gz"
|
|||
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue