diff options
| author | Paul Buetow (lxpbuetowlap.united.domain) <paul.buetow@1und1.de> | 2014-03-16 09:31:48 +0100 |
|---|---|---|
| committer | Paul Buetow (lxpbuetowlap.united.domain) <paul.buetow@1und1.de> | 2014-03-16 09:31:48 +0100 |
| commit | d6d066d5445afb5d688aca508a34abc0bbe2b1f2 (patch) | |
| tree | 8d73ee2902bc6f2664be8033eac9fd66ea57b558 | |
| parent | b6452f2266a66f6c7ed1d936d1bf7bcf1ecb0b30 (diff) | |
rename project
| -rw-r--r-- | Makefile | 8 | ||||
| -rw-r--r-- | debian/README | 2 | ||||
| -rw-r--r-- | debian/changelog | 2 | ||||
| -rw-r--r-- | debian/control | 14 | ||||
| -rw-r--r-- | debian/copyright | 6 | ||||
| -rw-r--r-- | debian/files | 2 | ||||
| -rw-r--r-- | debian/foo.manpages | 1 | ||||
| -rw-r--r-- | debian/japi.manpages | 1 | ||||
| -rw-r--r-- | debian/japi.substvars (renamed from debian/foo.substvars) | 0 | ||||
| -rw-r--r-- | docs/japi.1 (renamed from docs/foo.1) | 48 | ||||
| -rw-r--r-- | docs/japi.pod (renamed from docs/foo.pod) | 44 | ||||
| -rw-r--r-- | docs/japi.txt (renamed from docs/foo.txt) | 44 | ||||
| -rwxr-xr-x | src/japi (renamed from src/foo) | 0 |
13 files changed, 86 insertions, 86 deletions
@@ -1,5 +1,5 @@ -NAME=foo -all: version documentation build +NAME=japi +all: version docs build # THIS IS NEEDED BY THE DEBIAN TOOLS @@ -29,8 +29,8 @@ clean: version: cut -d' ' -f2 debian/changelog | head -n 1 | sed 's/(//;s/)//' > .version -# Builds the documentation into a manpage -documentation: +# Builds the docs into a manpage +docs: pod2man --release="$(NAME) $$(cat .version)" \ --center="User Commands" ./docs/$(NAME).pod > ./docs/$(NAME).1 pod2text ./docs/$(NAME).pod > ./docs/$(NAME).txt diff --git a/debian/README b/debian/README index 8edd461..df25415 100644 --- a/debian/README +++ b/debian/README @@ -1,4 +1,4 @@ -The Debian Package foo +The Debian Package japi ---------------------------- This is just a humble go project. Not sure if everything meets the debian diff --git a/debian/changelog b/debian/changelog index 78faa32..90826ec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -foo (0.0.0) stable; urgency=low +japi (0.0.0) stable; urgency=low * Initial version of the template diff --git a/debian/control b/debian/control index 1a33eb7..940ce61 100644 --- a/debian/control +++ b/debian/control @@ -1,15 +1,15 @@ -Source: foo +Source: japi Section: utils Priority: optional Maintainer: Paul Buetow <paul@buetow.org> Build-Depends: Standards-Version: 3.9.2 -Homepage: https://template.buetow.org -Vcs-Git: git://git.buetow.org/template -Vcs-Browser: http://web.buetow.org/git/?p=template.git;a=summary +Homepage: https://japi.buetow.org +Vcs-Git: git://git.buetow.org/japi +Vcs-Browser: http://web.buetow.org/git/?p=japi.git;a=summary -Package: foo +Package: japi Architecture: all Depends: -Description: Small template package - This is just a template package, which cann print Hello World. +Description: Command line tool for Jira + This is a small tool to list open issues in JIRA via the REST API diff --git a/debian/copyright b/debian/copyright index 081a25d..642364e 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,9 +1,9 @@ Format: http://dep.debian.net/deps/dep5 -Upstream-Name: foo -Source: http://template.buetow.org +Upstream-Name: japi +Source: http://japi.buetow.org Files: * -Copyright: 2012 Paul Buetow <paul@buetow.org> +Copyright: 2014 Paul Buetow <paul@buetow.org> License: GPL-3.0+ Files: debian/* diff --git a/debian/files b/debian/files index b1f79bd..9c5fa47 100644 --- a/debian/files +++ b/debian/files @@ -1 +1 @@ -foo_0.0.0.0_all.deb utils optional +japi_0.0.0.0_all.deb utils optional diff --git a/debian/foo.manpages b/debian/foo.manpages deleted file mode 100644 index 3925962..0000000 --- a/debian/foo.manpages +++ /dev/null @@ -1 +0,0 @@ -docs/foo.1 diff --git a/debian/japi.manpages b/debian/japi.manpages new file mode 100644 index 0000000..48e869c --- /dev/null +++ b/debian/japi.manpages @@ -0,0 +1 @@ +docs/japi.1 diff --git a/debian/foo.substvars b/debian/japi.substvars index abd3ebe..abd3ebe 100644 --- a/debian/foo.substvars +++ b/debian/japi.substvars @@ -124,18 +124,18 @@ .\" ======================================================================== .\" .IX Title "FOO 1" -.TH FOO 1 "2014-02-03" "foo 0.0.0.0" "User Commands" +.TH FOO 1 "2014-02-03" "japi 0.0.0.0" "User Commands" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" -foo \- A template project +japi \- A template project .SH "WTF?" .IX Header "WTF?" You may use this project in order to build your own Debian package for your own project. This has been tested with Debian GNU/Linux Squeeze and Debian GNU/Linux Wheezy. .PP -Feel free to modify any aspects. This project is just an empty example foo. +Feel free to modify any aspects. This project is just an empty example japi. .PP Follow these steps: .SS "Install required packages" @@ -158,7 +158,7 @@ Go to the to level directory and run To test run .PP .Vb 1 -\& ./bin/foo +\& ./bin/japi .Ve .PP It should print out the version number of the project. @@ -173,35 +173,35 @@ Go to the to level directory and run It will create the files like: .PP .Vb 4 -\& ../foo_0.0.0.0_all.deb -\& ../foo_0.0.0.0.dsc -\& ../foo_0.0.0.0_amd64.changes -\& ../foo_0.0.0.0.tar.gz +\& ../japi_0.0.0.0_all.deb +\& ../japi_0.0.0.0.dsc +\& ../japi_0.0.0.0_amd64.changes +\& ../japi_0.0.0.0.tar.gz .Ve .PP It should create a debian package in ../. Check and install it, e.g: .PP .Vb 2 -\& lintian \-\-pedantic ../foo_0.0.0.0_all.deb -\& sudo dpkg \-i ../foo_0.0.0.0_all.deb +\& lintian \-\-pedantic ../japi_0.0.0.0_all.deb +\& sudo dpkg \-i ../japi_0.0.0.0_all.deb .Ve .PP Run .PP .Vb 1 -\& dpkg \-L foo +\& dpkg \-L japi .Ve .PP to see whats in there. You can now run .PP .Vb 1 -\& /usr/bin/foo +\& /usr/bin/japi .Ve .PP or for example .PP .Vb 1 -\& man foo +\& man japi .Ve .SS "Read the Makefile" .IX Subsection "Read the Makefile" @@ -223,32 +223,32 @@ Now, since you understood everything feel free to customize everything the way y You should also consider the following: .SS "Manual page" .IX Subsection "Manual page" -This template is using \s-1POD\s0 for creating manual pages. Edit ./docs/foo.pod and run +This template is using \s-1POD\s0 for creating manual pages. Edit ./docs/japi.pod and run .PP .Vb 1 \& make documentation .Ve .PP -in order to build ./docs/foo.1. The page will be included in the resulting debian package automatically. You can review the page with +in order to build ./docs/japi.1. The page will be included in the resulting debian package automatically. You can review the page with .PP .Vb 1 -\& man ./docs/foo.1 +\& man ./docs/japi.1 .Ve -.SS "Renaming foo into your project name" -.IX Subsection "Renaming foo into your project name" -Rename all files which have *foo* included into your own new package name. You can do that with: +.SS "Renaming japi into your project name" +.IX Subsection "Renaming japi into your project name" +Rename all files which have *japi* included into your own new package name. You can do that with: .PP .Vb 3 \& PROJECTNAME=yourproject -\& find . \-name \e*foo\e* | -\& while read foo; do git mv $foo ${foo/foo/$PROJECTNAME}; done +\& find . \-name \e*japi\e* | +\& while read japi; do git mv $japi ${japi/japi/$PROJECTNAME}; done .Ve .PP -Search all content and rename *foo* into your own new package name. You can do that with: +Search all content and rename *japi* into your own new package name. You can do that with: .PP .Vb 2 -\& grep \-R foo . | grep \-v .git | -\& cut \-d: \-f1 | uniq | xargs sed \-i "s/foo/$PROJECTNAME/g" +\& grep \-R japi . | grep \-v .git | +\& cut \-d: \-f1 | uniq | xargs sed \-i "s/japi/$PROJECTNAME/g" .Ve .SS "Updating ./debian" .IX Subsection "Updating ./debian" diff --git a/docs/foo.pod b/docs/japi.pod index 5afff25..71e6819 100644 --- a/docs/foo.pod +++ b/docs/japi.pod @@ -1,12 +1,12 @@ =head1 NAME -foo - A template project +japi - A template project =head1 WTF? You may use this project in order to build your own Debian package for your own project. This has been tested with Debian GNU/Linux Squeeze and Debian GNU/Linux Wheezy. -Feel free to modify any aspects. This project is just an empty example foo. +Feel free to modify any aspects. This project is just an empty example japi. Follow these steps: @@ -26,7 +26,7 @@ Go to the to level directory and run To test run - ./bin/foo + ./bin/japi It should print out the version number of the project. @@ -38,27 +38,27 @@ Go to the to level directory and run It will create the files like: - ../foo_0.0.0.0_all.deb - ../foo_0.0.0.0.dsc - ../foo_0.0.0.0_amd64.changes - ../foo_0.0.0.0.tar.gz + ../japi_0.0.0.0_all.deb + ../japi_0.0.0.0.dsc + ../japi_0.0.0.0_amd64.changes + ../japi_0.0.0.0.tar.gz It should create a debian package in ../. Check and install it, e.g: - lintian --pedantic ../foo_0.0.0.0_all.deb - sudo dpkg -i ../foo_0.0.0.0_all.deb + lintian --pedantic ../japi_0.0.0.0_all.deb + sudo dpkg -i ../japi_0.0.0.0_all.deb Run - dpkg -L foo + dpkg -L japi to see whats in there. You can now run - /usr/bin/foo + /usr/bin/japi or for example - man foo + man japi =head2 Read the Makefile @@ -80,26 +80,26 @@ You should also consider the following: =head2 Manual page -This template is using POD for creating manual pages. Edit ./docs/foo.pod and run +This template is using POD for creating manual pages. Edit ./docs/japi.pod and run make documentation -in order to build ./docs/foo.1. The page will be included in the resulting debian package automatically. You can review the page with +in order to build ./docs/japi.1. The page will be included in the resulting debian package automatically. You can review the page with - man ./docs/foo.1 + man ./docs/japi.1 -=head2 Renaming foo into your project name +=head2 Renaming japi into your project name -Rename all files which have *foo* included into your own new package name. You can do that with: +Rename all files which have *japi* included into your own new package name. You can do that with: PROJECTNAME=yourproject - find . -name \*foo\* | - while read foo; do git mv $foo ${foo/foo/$PROJECTNAME}; done + find . -name \*japi\* | + while read japi; do git mv $japi ${japi/japi/$PROJECTNAME}; done -Search all content and rename *foo* into your own new package name. You can do that with: +Search all content and rename *japi* into your own new package name. You can do that with: - grep -R foo . | grep -v .git | - cut -d: -f1 | uniq | xargs sed -i "s/foo/$PROJECTNAME/g" + grep -R japi . | grep -v .git | + cut -d: -f1 | uniq | xargs sed -i "s/japi/$PROJECTNAME/g" =head2 Updating ./debian diff --git a/docs/foo.txt b/docs/japi.txt index bf913ac..7cfd093 100644 --- a/docs/foo.txt +++ b/docs/japi.txt @@ -1,5 +1,5 @@ NAME - foo - A template project + japi - A template project WTF? You may use this project in order to build your own Debian package for @@ -7,7 +7,7 @@ WTF? Debian GNU/Linux Wheezy. Feel free to modify any aspects. This project is just an empty example - foo. + japi. Follow these steps: @@ -26,7 +26,7 @@ WTF? To test run - ./bin/foo + ./bin/japi It should print out the version number of the project. @@ -37,27 +37,27 @@ WTF? It will create the files like: - ../foo_0.0.0.0_all.deb - ../foo_0.0.0.0.dsc - ../foo_0.0.0.0_amd64.changes - ../foo_0.0.0.0.tar.gz + ../japi_0.0.0.0_all.deb + ../japi_0.0.0.0.dsc + ../japi_0.0.0.0_amd64.changes + ../japi_0.0.0.0.tar.gz It should create a debian package in ../. Check and install it, e.g: - lintian --pedantic ../foo_0.0.0.0_all.deb - sudo dpkg -i ../foo_0.0.0.0_all.deb + lintian --pedantic ../japi_0.0.0.0_all.deb + sudo dpkg -i ../japi_0.0.0.0_all.deb Run - dpkg -L foo + dpkg -L japi to see whats in there. You can now run - /usr/bin/foo + /usr/bin/japi or for example - man foo + man japi Read the Makefile Read the Makefile in order to understand what's going on. @@ -78,28 +78,28 @@ Customize Manual page This template is using POD for creating manual pages. Edit - ./docs/foo.pod and run + ./docs/japi.pod and run make documentation - in order to build ./docs/foo.1. The page will be included in the + in order to build ./docs/japi.1. The page will be included in the resulting debian package automatically. You can review the page with - man ./docs/foo.1 + man ./docs/japi.1 - Renaming foo into your project name - Rename all files which have *foo* included into your own new package + Renaming japi into your project name + Rename all files which have *japi* included into your own new package name. You can do that with: PROJECTNAME=yourproject - find . -name \*foo\* | - while read foo; do git mv $foo ${foo/foo/$PROJECTNAME}; done + find . -name \*japi\* | + while read japi; do git mv $japi ${japi/japi/$PROJECTNAME}; done - Search all content and rename *foo* into your own new package name. You + Search all content and rename *japi* into your own new package name. You can do that with: - grep -R foo . | grep -v .git | - cut -d: -f1 | uniq | xargs sed -i "s/foo/$PROJECTNAME/g" + grep -R japi . | grep -v .git | + cut -d: -f1 | uniq | xargs sed -i "s/japi/$PROJECTNAME/g" Updating ./debian Edit the following files accordingly to your new project (e.g. with |
