-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·15 lines (10 loc) · 958 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
HIST_PATH="/usr/local/bin/hist"
if [ -f "$HIST_PATH" ]; then
echo "File $HIST_PATH already exists. Exiting."
exit 1
fi
#echo -e "#!/bin/bash\n\njava -cp \"/home/tayssir/projects/Histograph/target/Histograph-1.0-SNAPSHOT.jar:/home/tayssir/.m2/repository/info/picocli/picocli/4.7.5/picocli-4.7.5.jar\" com.tsts.Main \"\$@\"" > "$HIST_PATH"
echo -e "#!/bin/bash\n\njava -cp \"/home/tayssir/projects/Histograph/target/Histograph-1.0-SNAPSHOT.jar:/home/tayssir/.m2/repository/info/picocli/picocli/4.7.5/picocli-4.7.5.jar::/home/tayssir/.m2/repository/org/eclipse/jgit/org.eclipse.jgit/6.6.1.202309021850-r/org.eclipse.jgit-6.6.1.202309021850-r.jar::/home/tayssir/.m2/repository/org/slf4j/slf4j-api/2.0.9/slf4j-api-2.0.9.jar:/home/tayssir/.m2/repository/org/slf4j/slf4j-simple/2.0.9/slf4j-simple-2.0.9.jar\" com.tsts.Main \"\$@\"" > "$HIST_PATH"
chmod +x "$HIST_PATH"
echo "'hist' script has been created at $HIST_PATH and made executable."