-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f771b1
commit afb8b8a
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
-- | ||
-- constant variables | ||
-- | ||
local GIT_REPO = "https://github.com/amirhnajafiz/captain-mustache.git"; | ||
local MESSAGE = "In order to use `captain-mustache` in every place on your system, make sure to" + | ||
"the followings to either `~/.zshrc`, `~/.bash_profile`, or `~/.bashrc`." + "\n"; | ||
local EXPORT = "export PATH=\"<path-to-cloned-repository>:`$PATH`\"" + "\n" + | ||
"export STRAGO_PATH="<path-to-cloned-repository>""; | ||
|
||
|
||
-- | ||
-- importing bash module | ||
-- | ||
local sh = require('sh'); | ||
|
||
-- | ||
-- build our commands | ||
-- | ||
local cloneCommand = sh.command('git', 'clone'); | ||
local makeFileCommand = sh.command('make'); | ||
local echoCommand = sh.command('echo'); | ||
|
||
-- | ||
-- clone into repository | ||
-- | ||
cloneCommand(GIT_REPO); | ||
|
||
--- build | ||
makeFileCommand('build'); | ||
|
||
echoCommand(MESSAGE); | ||
echoCommand(EXPORT); |