pack minimal shell script to debian package using fakeroot / dpkg-buildpackage
fakeroot / dpkg-buildpackage
When i use dpkg-buildpackage the build process end with error that for now i don't found a solution
the `fakeroot debian/rules binary run the build process without error
Source: my-tool
Section: misc
Priority: optional
Maintainer: Your Name <youremail@example.com>
Standards-Version: 4.6.2
Package: my-tool
Architecture: all
Description: Minimal Debian package
A short description of the minimal Debian package.
{// See https://code.visualstudio.com/docs/editor/tasks for more information"version":"2.0.0","tasks":[{"label":"Build Debian Package","type":"shell","command":"fakeroot debian/rules binary","options":{"cwd":"${workspaceFolder}"},"group":{"kind":"build","isDefault":true},"problemMatcher":[]},{"label":"Clean","type":"shell","command":"fakeroot debian/rules clean","options":{"cwd":"${workspaceFolder}"},"problemMatcher":[]},{"label":"Update Changelog with dch","type":"shell","command":"dch --newversion ${input:changelogVersion} $(git log -1 --pretty=format:'* %s')","options":{"cwd":"${workspaceFolder}","env":{"DEBEMAIL":"dev@example.com","DEBFULLNAME":"dev com"}},"problemMatcher":[]}],"inputs":[{"id":"changelogVersion","type":"promptString","description":"Enter the new version for dch"}]}
the demo use git log -1 --pretty=format:'* %s') as demo to get changes from last commit
it's batter to get the commits from last tag using git log v1.2.0..v1.3.0 --pretty=format:"* %s"
setting.json
Replace indentation from space to tab when using sheelscript
mark rule as shellscript if fail on autodetect
check if associate it with makefile still the indention rule for shellscript working