123456789101112131415161718192021222324252627282930313233 |
- #!/bin/ksh
- doas pkg_add rust
- application=keepass-diff
- repository=https://github.com/Narigo/keepass-diff.git
- export compile=
- mkdir -p ~/src
- cd ~/src || return
- if [ ! -d $application ]; then
- git clone $repository
- cd $application || return
- export compile=true
- else
- cd $application || return
- #git pull
- pwd
- git fetch
- LOCAL=$(git rev-parse HEAD)
- REMOTE=$(git rev-parse @{u})
- if [ ! $LOCAL = $REMOTE ]; then
- pwd
- echo "Need to pull"
- git pull
- export compile=true
- fi
- fi
- if [ "$compile" = "true" ]; then
- cd ~/src/$application || return
- RUSTFLAGS="-C target-cpu=native" cargo install keepass-diff
- fi
|