Created
June 16, 2016 08:41
-
-
Save pulecp/d8c9faedbe584076afcf8f02c42b59d3 to your computer and use it in GitHub Desktop.
The script to create rpm package from Drupal coder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| rm -f *.rpm | |
| rm -rf coder | |
| git clone https://git.drupal.org/project/coder.git | |
| cd coder | |
| PACKAGE_VERSION='2.0' | |
| PACKAGE_RELEASE='2' | |
| fpm -s dir -t rpm \ | |
| --name "drupal-coder" \ | |
| --version "${PACKAGE_VERSION}" \ | |
| --iteration "${PACKAGE_RELEASE}" \ | |
| --architecture x86_64 \ | |
| --prefix '/usr/share/drupal-coder' \ | |
| --vendor 'Inuits' \ | |
| --description 'Drupal Coder' \ | |
| --maintainer 'Jenkins' \ | |
| --epoch '1' \ | |
| --exclude '.git' \ | |
| . | |
| mv *.rpm ../ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment