--- admin/PlamoBuild-template-20180815 2018-08-15 16:18:50.000000000 +0900 +++ plamo/01_minimum/devel.txz/plamobuild/PlamoBuild.plamobuild-git_20180815 2018-08-15 16:56:35.000000000 +0900 @@ -1,19 +1,20 @@ #!/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= -branch= -commitid= -pkgbase= -vers= -arch=`uname -m` +branch[0]=master +commitid[0]=ed8dff5 +pkgbase=plamobuild +vers=git_20180815 +arch=noarch build=P1 -src=$pkgbase-$vers +src=Plamo-src patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="ChangeLog" template=20180815 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -31,6 +32,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 @@ -53,6 +55,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 @@ -65,16 +70,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 TZ=UTC find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date -u '+%m%d0000'` {} \; 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 + TZ=UTC touch -t `date -u '+%m%d0000'` $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 TZ=UTC touch -t `date -u '+%m%d0000'` $pkg.tar xz $pkg.tar ; touch $pkg.tar.xz ; mv $pkg.tar.xz $pkg.txz cleanup