-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debian scripts are now picked up from default folder #35 #57
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,10 @@ trait DebianKeys { | |
val debianSign = TaskKey[File]("debian-sign", "runs the dpkg-sig command to sign the generated deb file.") | ||
val debianSignRole = SettingKey[String]("debian-sign-role", "The role to use when signing a debian file (defaults to 'builder').") | ||
|
||
val debianControlScriptsDirectory = SettingKey[File](""" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think there's a bug here. YOu probably want the triple val debianControlScriptsDirectory = SettingKey[File]("debian-control-scripts-directory",
"""Directory where all debian control scripts reside.
Default is 'src/debian/DEBIAN'""".stripMargin) |
||
debian-control-scripts-directory", "Directory where all debian control scripts reside. | ||
Default is 'src/debian/DEBIAN' | ||
""".stripMargin) | ||
val debianMakePreinstScript = TaskKey[Option[File]]("makePreinstScript", "Creates or discovers the preinst script used by this project") | ||
val debianMakePrermScript = TaskKey[Option[File]]("makePrermScript", "Creates or discovers the prerm script used by this project") | ||
val debianMakePostinstScript = TaskKey[Option[File]]("makePostInstScript", "Creates or discovers the postinst script used by this project") | ||
|
@@ -45,7 +49,7 @@ trait DebianKeys { | |
""".stripMargin) | ||
} | ||
|
||
/** Keys used for RPM specific settings. */ | ||
/** Keys used for Debian specific settings. */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice catch :) Can you tell I copy-paste a lot? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure that xD |
||
object Keys extends DebianKeys { | ||
// Metadata keys | ||
def name = sbt.Keys.name | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
echo "installing ${name}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm... wish we could somehow actually install in the integration test.... probably can't but thanks for creating this :) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
echo "prepare remove of ${name}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to do this. sbt.File == java.io.File.
It's done like so: