--- admin/PlamoBuild-template-20170415 2017-04-15 12:25:32.000000000 +0900 +++ plamo/01_minimum/devel.txz/old/plamobuild-20170417/PlamoBuild.plamobuild-git_20170417 2017-04-17 20:39:04.000000000 +0900 @@ -1,18 +1,19 @@ #!/bin/sh ###################################################################### -url="" +url="https://github.com/plamolinux/Plamo-src.git + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/01_minimum/devel.txz/plamobuild/gitlog2changelog" verify= digest= -commitid= -pkgbase= -vers= -arch=`uname -m` +commitid[0]=15f625d +pkgbase=plamobuild +vers=git_20170417 +arch=noarch build=P1 -src=$pkgbase-$vers +src=Plamo-src patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog" template=20170415 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -30,6 +31,7 @@ prepare "$@" if [ $opt_download -eq 1 ] ; then download_sources + nkf -e --overwrite Plamo-src/ChangeLog fi if [ $opt_config -eq 1 ] ; then for i in `seq 0 $((${#B[@]} - 1))` ; do @@ -52,6 +54,9 @@ make fi done + nkf -w --overwrite README.md + pandoc -f markdown_github -t plain -o README README.md + nkf -e --overwrite README fi if [ $opt_package -eq 1 ] ; then root_priv @@ -64,16 +69,31 @@ make install DESTDIR=$P fi done + install -d $P/usr/bin + install admin/make_PlamoBuild.py $P/usr/bin/make_PlamoBuild + install admin/gitlog2changelog.py $P/usr/bin/gitlog2changelog + install -d $P/usr/share/plamo + install -m 644 admin/plamobuild_functions.sh $P/usr/share/plamo/functions + ln -s plamo/functions $P/usr/share/plamobuild_functions.sh + install -d $docdir/$src~ + install -m 644 README $docdir/$src~ touch $W/i.et cd $W find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date '+%m%d0900'` {} \; compress setup_docdir + mv $docdir/$src~/README $docdir/$src + gzip_one $docdir/$src/README + mv $docdir/$src/{README,$func,$myname,$spec}.gz $C + mv $C/{README,$func,$myname,$spec}.gz $docdir/$src + touch -t `date '+%m%d0900'` $docdir/$src convert_links + prune_symlink $P/usr/share tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | 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 usr/share/plamo{,build_functions.sh} 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 cleanup