Skip to content

Commit

Permalink
Adding build and install scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Dalbo committed Jun 5, 2017
1 parent ccbe9af commit e62d8bf
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.class
*.jar
.DS_Store
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Covfefe-ify your words

## Usage
`covfefe [args]`

e.g. `covfefe president` will return `preszizi`. You can enter multiple string arguments as well.

For more information, see https://codegolf.stackexchange.com/questions/123685/covfefify-a-string

## How to Install
- Make sure you have Java 8
- If you want to compile (not download the JAR) you'll need jdk 1.8

### Building
`sh build.sh`

This will compile Main.java and bundle it into the jar

### Installing locally
`sh install.sh`

This will install it to /usr/local/lib and name it covfefe.jar. It'll also create a symlink in /usr/local/bin to the covfefe shell script
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
javac Main.java
jar -cvfm covfefe.jar MANIFEST.MF Main.class
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
cp covfefe.jar /usr/local/lib
chmod +x covfefe
rm /usr/local/bin/covfefe
ln -s ./covfefe /usr/local/bin/covfefe

0 comments on commit e62d8bf

Please sign in to comment.