mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
88 lines
1.3 KiB
Bash
88 lines
1.3 KiB
Bash
#!/bin/bash
|
|
|
|
export LANG=POSIX
|
|
dir=`dirname $0`
|
|
inifile=$1
|
|
. $dir/ini-tools.sh
|
|
|
|
cat << EOT
|
|
format_depends()
|
|
{
|
|
sed 's/ */,/g; s/,\([><=]\+\),*/\1/g; s/, *,*/,/g; s/, *$//'
|
|
}
|
|
|
|
changelog()
|
|
{
|
|
#dch -c /dev/stdout --create -v \$VERSION-\$RELEASE --package \$NAME
|
|
cat << EOF
|
|
\$NAME (\$VERSION-\$RELEASE) UNRELEASED; urgency=medium
|
|
|
|
* Initial release. (Closes: #XXXXXX)
|
|
|
|
-- Jan Lindemann <jan@janware.com> `date -R`
|
|
|
|
EOF
|
|
}
|
|
|
|
compat()
|
|
{
|
|
echo -n 9
|
|
}
|
|
|
|
control()
|
|
{
|
|
cat << EOF
|
|
Source: \$NAME
|
|
Maintainer: Jan Lindemann <jan@janware.com>
|
|
Section: `ini_value global.group`
|
|
Priority: optional
|
|
Standards-Version: 3.9.2
|
|
Build-Depends: debhelper (>= 9)
|
|
|
|
Package: \$NAME-run
|
|
Architecture: any
|
|
Depends: `echo "\${shlibs:Depends}, \${misc:Depends}, \$REQUIRES_RUN, \$REQUIRES_DEVEL" | format_depends`
|
|
Description: `ini_value summary`
|
|
`ini_value description | sed 's/^/ /'`
|
|
EOF
|
|
}
|
|
|
|
copyright()
|
|
{
|
|
echo -n ""
|
|
}
|
|
|
|
format()
|
|
{
|
|
echo "3.0 (quilt)"
|
|
}
|
|
|
|
rules()
|
|
{
|
|
cat << "EOF"
|
|
#!/usr/bin/make -f
|
|
%:
|
|
EOF
|
|
echo -e "\tdh \$""@"
|
|
cat << "EOF"
|
|
|
|
override_dh_auto_clean:
|
|
|
|
override_dh_auto_test:
|
|
|
|
override_dh_auto_install:
|
|
\$(MAKE) ENV_PREFIX=\$\$(pwd)/debian/inst-root/$NAME install
|
|
EOF
|
|
}
|
|
|
|
mkdir -p debian
|
|
cd debian
|
|
|
|
for file in changelog compat control copyright format rules; do
|
|
\$file > \$file
|
|
done
|
|
|
|
echo "Produced by $0."
|
|
echo "$0 is currently just a dummy script" >&2
|
|
EOT
|
|
|