Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
feat(sac_in_distro.sh): add a script to run program directly without …
Browse files Browse the repository at this point in the history
…logging out
  • Loading branch information
sean0921 committed Jun 6, 2021
1 parent 6558ffa commit 968b16c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
DEBIAN_PACKAGE_NAME=sac-iris
VERSION=102.0
VERSION_DEBPREFIX=
VERSION_DEBSUFFIX=-1+sdp2.1
VERSION_DEBSUFFIX=-1+sdp3.0
MAINTAINER="Sean Ho <[email protected]>"
SOURCE_TARBALL_NAME=sac-"$VERSION".tar.gz
SOURCE_REQUIRED_CHECKSUMS="6815c2879d047f1f4961dbd52102ab131faac862661ec6a128ab00575b8abc12"
Expand Down Expand Up @@ -153,10 +153,8 @@ printf "\033[1;32m - Done!\033[0m\n"

printf "\033[1;32m+ Adding program to distro path...\033[0m\n"
make DESTDIR="$BUILD_ROOT"/pkgroot $QUIET install
cd "$BUILD_ROOT"
ln $LN_ARGUMENT pkgroot/opt/sac/bin/sac pkgroot/usr/bin/sac
ln $LN_ARGUMENT pkgroot/opt/sac/bin/sacinit.sh pkgroot/etc/profile.d/sac_bash_profile.sh
ln $LN_ARGUMENT pkgroot/opt/sac/bin/sacinit.csh pkgroot/etc/csh/login.d/sacinit.csh
cd $BUILD_ROOT
install -m 0755 sac_in_distro.sh pkgroot/usr/bin/sac

#################################### Writing suitable information to packaging file

Expand Down
4 changes: 4 additions & 0 deletions sac_in_distro.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
set -e
. /opt/sac/bin/sacinit.sh
exec /opt/sac/bin/sac "$@"

0 comments on commit 968b16c

Please sign in to comment.