]> gitweb.fluxo.info Git - trashman.git/commitdiff
Feat: new functions trashman_installed_at and trashman_run_with
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 25 Apr 2021 13:03:53 +0000 (10:03 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 25 Apr 2021 13:03:53 +0000 (10:03 -0300)
share/hoarder/firefox-dev/unix/linux/install
share/hoarder/irpf/unix/linux/install
share/trashman/trashman/functions

index c194acf5c3ab73fcdf4972c3d70440c780605ecc..603ec10c76f58ba0e43e20924cd9b5435734a136 100755 (executable)
@@ -34,3 +34,6 @@ rm -rf $WORK                 || exit 1
 mkdir -p $HOME/.local/bin                                 || exit 1
 cd $HOME/.local/bin                                       || exit 1
 ln -sf $HOME/.local/share/firefox-dev/firefox firefox-dev || exit 1
+
+trashman_installed at $HOME/.local/share/firefox
+trashman_run_with $HOME/.local/bin/firefox
index b755558f7f20dc3a3567651dbd322e0aace4e613..29d8e6775cc69f6be530f4d3c2d262629af4a141 100755 (executable)
@@ -32,7 +32,9 @@ chmod     +x ${FILE}                    || exit 1
 cd $CWD
 rm -rf $WORK || exit 1
 
+trashman_installed at $HOME/ProgramasRFB/IRPF${YEAR}
+
 # Run
 echo "Run IRPF ${YEAR} with the following command:"
 echo ""
-echo "\t/usr/bin/java -Xms128M -Xmx512M -jar /home/user/ProgramasRFB/IRPF${YEAR}/irpf.jar"
+echo "\t/usr/bin/java -Xms128M -Xmx512M -jar ${HOME}/ProgramasRFB/IRPF${YEAR}/irpf.jar"
index 4551bc8807d7fae54cae8fb09e3a10d6836ebae4..abb2103fb8275587ccd719c96de2b7cefcc2ec2c 100644 (file)
@@ -271,3 +271,13 @@ EOF
   $DEPLOY_RSYNC "$RSYNC_PATH" $APP_BASE/ $SERVER:/usr/local/share/trashman/
   $SSH $SERVER sudo /usr/local/share/trashman/trashman install trashman
 }
+
+# Inform where a package was installed
+trashman_installed_at () {
+  echo "Package installed at $*"
+}
+
+# Inform how to run the package main command
+trashman_run_with () {
+  echo "Run with $*"
+}