mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-26 23:23:55 +01:00
create-mkdebian.sh: Debian builds ytools-run and -devel packages, with lots of warnings, still
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
9430be3109
commit
5237aceffb
1 changed files with 25 additions and 6 deletions
|
|
@ -8,7 +8,7 @@ inifile=$1
|
||||||
cat << EOT
|
cat << EOT
|
||||||
format_depends()
|
format_depends()
|
||||||
{
|
{
|
||||||
sed 's/ */,/g; s/,\([><=]\+\),*/\1/g; s/, *,*/,/g; s/, *$//'
|
echo "\$@" | sed 's/ */,/g; s/,\([><=]\+\),*/\1/g; s/, *,*/,/g; s/, *$//; s/^ *,//; s/\([><=]\+\)\([0-9.-]\+\)/ (\1\2) /g'
|
||||||
}
|
}
|
||||||
|
|
||||||
changelog()
|
changelog()
|
||||||
|
|
@ -41,9 +41,15 @@ Build-Depends: debhelper (>= 9)
|
||||||
|
|
||||||
Package: \$NAME-run
|
Package: \$NAME-run
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: `echo "\${shlibs:Depends}, \${misc:Depends}, \$REQUIRES_RUN, \$REQUIRES_DEVEL" | format_depends`
|
Depends: \`format_depends "\${shlibs:Depends}, \${misc:Depends}, \$REQUIRES_RUN"\`
|
||||||
Description: `ini_value summary`
|
Description: `ini_value summary`
|
||||||
`ini_value description | sed 's/^/ /'`
|
`ini_value description | sed 's/^/ /'`
|
||||||
|
|
||||||
|
Package: \$NAME-devel
|
||||||
|
Architecture: any
|
||||||
|
Depends: \`format_depends "\$NAME-run = $VERSION-$REVISION, \$REQUIRES_DEVEL"\`
|
||||||
|
Description: \$NAME Development Package
|
||||||
|
Development tools for \$NAME-run
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -61,17 +67,30 @@ rules()
|
||||||
{
|
{
|
||||||
cat << "EOF"
|
cat << "EOF"
|
||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
FILTER_DEVEL = "/include/.*.h\$\$\\|devel\\|make\\|lib.*\\.a\$\$\\|lib.*\\.so\$\$\|.*\\.exp\$\$\\|.*\\.def\$\$\\|.*\\.lib\$\$"
|
||||||
|
NAME = \$(shell pwd | xargs basename | sed 's/-[0-9.-]\+//')
|
||||||
|
DEB_DIR = \$\$(pwd)/debian
|
||||||
|
ENV_PREFIX = \$\$(pwd)/debian/tmp/inst-root
|
||||||
|
EOF
|
||||||
|
|
||||||
|
echo INSTALL_LOG = \$INSTALL_LOG
|
||||||
|
|
||||||
|
cat << "EOF"
|
||||||
%:
|
%:
|
||||||
EOF
|
EOF
|
||||||
echo -e "\tdh \$""@"
|
echo -e "\tdh \$""@"
|
||||||
cat << "EOF"
|
cat << EOF
|
||||||
|
|
||||||
override_dh_auto_clean:
|
override_dh_auto_clean:
|
||||||
|
|
||||||
override_dh_auto_test:
|
override_dh_auto_test:
|
||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
\$(MAKE) ENV_PREFIX=\$\$(pwd)/debian/inst-root/$NAME install
|
> \$INSTALL_LOG
|
||||||
|
\\\$(MAKE) ENV_PREFIX=\\\$(ENV_PREFIX) INSTALL_LOG=\\\$(INSTALL_LOG) install
|
||||||
|
/bin/bash milk-install-log.sh -p \\\$(ENV_PREFIX) -n \\\$(NAME) -t deb \$INSTALL_LOG \\\$(DEB_DIR)
|
||||||
|
override_dh_shlibdeps:
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -79,10 +98,10 @@ mkdir -p debian
|
||||||
cd debian
|
cd debian
|
||||||
|
|
||||||
for file in changelog compat control copyright format rules; do
|
for file in changelog compat control copyright format rules; do
|
||||||
|
test -e \$file && continue
|
||||||
\$file > \$file
|
\$file > \$file
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Produced by $0."
|
echo "Produced by $0, the output should be in the \"debian\" sub-directory."
|
||||||
echo "$0 is currently just a dummy script" >&2
|
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue