diff options
| author | Michael Forney <mforney@mforney.org> | 2016-12-11 16:04:20 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-12-13 23:10:30 -0800 |
| commit | 293f5a93b77d92fd65db7f3d0df654f102e46cfb (patch) | |
| tree | 6ecd1170e3dd793862dd852814dc1b4cd5e44260 /pkg/man-pages-posix | |
| parent | 9a506a6834df01a26795cea222b410f206efa9fa (diff) | |
Move to flat package hierarchy
Note to self: never try to move submodules again
To migrate your existing submodules (more or less):
set -x
set -e
mkdir .git/modules/pkg
for old in */*/src ; do
new="pkg/${old#*/}"
if ! [ -f "$old/.git" ] || [ "${old%%/*}" = pkg ] ; then
continue
fi
git -C ".git/modules/$old" config core.worktree "../../../../../$new"
rmdir "$new"
mv "$old" "$new"
sed -e "s,$old,$new," "$new/.git" > "$new/.git.tmp"
mv "$new/.git.tmp" "$new/.git"
mkdir ".git/modules/${new%/src}"
mv ".git/modules/$old" ".git/modules/$new"
rm "${old%/src}"/*.ninja
mv "${old%/src}"/*.tar.{gz,xz,bz2} "${new%/src}/"
rmdir "${old%/src}" || true
done
sed -e 's,^\[submodule "[^/]*/,[submodule "pkg/,' .git/config > .git/config.tmp
mv .git/config.tmp .git/config
Diffstat (limited to 'pkg/man-pages-posix')
| -rw-r--r-- | pkg/man-pages-posix/.gitignore | 2 | ||||
| -rw-r--r-- | pkg/man-pages-posix/gen.rc | 7 | ||||
| -rw-r--r-- | pkg/man-pages-posix/manpages.rc | 40 | ||||
| -rw-r--r-- | pkg/man-pages-posix/rev | 0 | ||||
| -rw-r--r-- | pkg/man-pages-posix/sha256 | 1 | ||||
| -rw-r--r-- | pkg/man-pages-posix/url | 1 |
6 files changed, 51 insertions, 0 deletions
diff --git a/pkg/man-pages-posix/.gitignore b/pkg/man-pages-posix/.gitignore new file mode 100644 index 00000000..069144be --- /dev/null +++ b/pkg/man-pages-posix/.gitignore @@ -0,0 +1,2 @@ +/man-pages-posix-2013-a.tar.xz +/src diff --git a/pkg/man-pages-posix/gen.rc b/pkg/man-pages-posix/gen.rc new file mode 100644 index 00000000..55892923 --- /dev/null +++ b/pkg/man-pages-posix/gen.rc @@ -0,0 +1,7 @@ +rule manpages 'rc ./$dir/manpages.rc $builddir/$repo.git $out $srcdir' ; with\ + deps gcc\ + depfile '$out.d' +build '$outdir'/manpages.index manpages '|' '$dir'/manpages.rc config.rc '||' '$outdir'/fetch.stamp +index_inputs=($index_inputs '$outdir'/manpages.index) + +fetch curl diff --git a/pkg/man-pages-posix/manpages.rc b/pkg/man-pages-posix/manpages.rc new file mode 100644 index 00000000..dbdf782f --- /dev/null +++ b/pkg/man-pages-posix/manpages.rc @@ -0,0 +1,40 @@ +#!/bin/rc + +. ./config.rc + +flag e + + +ifs=' +' +repo=$1 +out=$2 +dir=$3 +shift 2 + +fn checkstatus {} + +wd=`{pwd} +checkstatus + +cd $dir +pages=man?p/* +pages=() +for(f in man?p/*) if(fs extra/man-pages-posix $f) + pages=($pages $f) +cd $wd + +if(~ $#pages 0) { + >$out + >$out.d + exit +} + +hashes=`{git -C $repo hash-object -w --no-filters -- $wd/$dir/$pages} +checkstatus + +~ $#pages $#hashes +printf '100644 %s\n' $hashes' share/man/'$pages >$out.tmp +mv $out.tmp $out + +echo $out: $dir/$pages >$out.d.tmp +mv $out.d.tmp $out.d diff --git a/pkg/man-pages-posix/rev b/pkg/man-pages-posix/rev new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/pkg/man-pages-posix/rev diff --git a/pkg/man-pages-posix/sha256 b/pkg/man-pages-posix/sha256 new file mode 100644 index 00000000..31d8683e --- /dev/null +++ b/pkg/man-pages-posix/sha256 @@ -0,0 +1 @@ +19633a5c75ff7deab35b1d2c3d5b7748e7bd4ef4ab598b647bb7e7f60b90a808 man-pages-posix-2013-a.tar.xz diff --git a/pkg/man-pages-posix/url b/pkg/man-pages-posix/url new file mode 100644 index 00000000..a04876db --- /dev/null +++ b/pkg/man-pages-posix/url @@ -0,0 +1 @@ +url = "https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/man-pages-posix-2013-a.tar.xz" |
