1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #!/bin/ksh
- doas pkg_add cmake gmake py3-Pillow
- print "INFO: Requires deutex as build dependency, installing..."
- #./install_deutex.ksh
- #print "INFO: Requires deutex as build dependency, installing... DONE"
- application=freedoom
- repository=https://github.com/freedoom/freedoom.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
- gmake -j4 DEUTEX=$HOME/src/deutex/src/deutex
- mkdir -p $HOME/games/doom/wads/iwads/
- mv ./wads/freedm.wad $HOME/games/doom/wads/iwads/freedm-git.wad
- mv ./wads/freedoom1.wad $HOME/games/doom/wads/iwads/freedoom1-git.wad
- mv ./wads/freedoom2.wad $HOME/games/doom/wads/iwads/freedoom2-git.wad
- fi
|