--- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/00_base/old/gawk-20160710/PlamoBuild.gawk-4.1.3 2016-07-10 11:19:26.000000000 +0900 @@ -1,15 +1,19 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://ftp.gnu.org/gnu/gawk/gawk-4.1.3.tar.xz" +pkgbase=gawk +vers=4.1.3 arch=`uname -m` -build=P1 +build=P3 src=$pkgbase-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="NEWS POSIX.STD COPYING README AUTHORS INSTALL + `echo README_d/README.{VMS,mpfr,os2,bootstrap,gcc-3,zos,macosx}` + `echo README_d/{ChangeLog,README.{multibyte,hacking,tests}}` + `echo README_d/{ChangeLog.0,README.{solaris,pc}}` + ChangeLog ABOUT-NLS NEWS.0" ###################################################################### fscheck() { @@ -277,6 +281,9 @@ find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress + strip_bindir $P/usr/libexec/awk + strip_libdir $P/usr/$libdir/gawk + touch -t `date '+%m%d0900'` $P/usr/libexec/awk $P/usr/$libdir/gawk for i in `seq 0 $((${#DOCS[@]} - 1))` ; do for j in ${DOCS[$i]} ; do for k in ${S[$i]}/$j ; do @@ -296,8 +303,16 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P usr/libexec/awk + tar rvpf $pkg.tar -C $P usr/$libdir/gawk + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name "*.mo"` + tar rvpf $pkg.tar -C $P usr/share/awk + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/info | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man3 | tail -n+2` tar rvpf $pkg.tar -C $P usr/share/doc/$src + tar rvpf $pkg.tar -C $P install/doinst.sh touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz read -p "Do you want to keep work files? [y/N] " ans