--- admin/PlamoBuild.template.common.without_comment 2016-06-15 20:51:13.000000000 +0900 +++ plamo/01_minimum/devel.txz/old/flex-20160624/PlamoBuild.flex-2.5.35 2016-06-24 17:27:59.000000000 +0900 @@ -1,15 +1,17 @@ #!/bin/sh ###################################################################### -url="" -pkgbase= -vers= +url="http://downloads.sourceforge.net/flex/flex-2.5.35.tar.bz2 + ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/01_minimum/flex/flex-2.5.35-gcc44-1.patch.gz" +pkgbase=flex +vers=2.5.35 arch=`uname -m` -build=P1 +build=P2 src=$pkgbase-$vers -patchfiles="" +patchfiles="flex-2.5.35-gcc44-1.patch.gz" OPT_CONFIG="" -DOCS="README" +DOCS="README ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS + README-alpha THANKS TODO ONEWS README.cvs" ###################################################################### fscheck() { @@ -272,6 +274,13 @@ make install DESTDIR=$P fi done + cat <<- "EOF" > $P/usr/bin/lex + #!/bin/sh + + exec flex -l "$@" + EOF + chmod 755 $P/usr/bin/lex + ln -s libfl.a $P/usr/$libdir/libl.a touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ @@ -296,8 +305,13 @@ done convert tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` + 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/info | tail -n+2` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/locale -name *.mo` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | 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