Created
March 1, 2020 00:42
-
-
Save dillera/e9cf2d238c8e1c87b8100631a837283b to your computer and use it in GitHub Desktop.
Helper functions for sgugshell.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sgcp() { | |
cp -r ~/rpmbuild/sgug-rse/packages/"$1"/* ~/rpmbuild/ | |
} | |
sgwipcp() { | |
cp -r ~/rpmbuild/sgug-rse-wip/packages/"$1"/* ~/rpmbuild/ | |
} | |
sgsbuild() { | |
cd ~/rpmbuild/SPECS | |
TARGET="$(ls -1 ~/rpmbuild/SRPMS/ | grep ${1})" | |
rpm -ivh ~/rpmbuild/SRPMS/${TARGET} | |
} | |
sgrbuild() { | |
rpmbuild --undefine=_disable_source_fetch -ba ${1}.spec --nocheck | |
} | |
sggit() { | |
cd ~/rpmbuild/sgug-rse | |
} | |
sgspec() { | |
cd ~/rpmbuild/SPECS | |
} | |
sgsrc() { | |
cd ~/rpmbuild/SRPMS | |
} | |
sgwip() { | |
cd ~/rpmbuild/SRPMS | |
} | |
export -f sgcp | |
export -f sgwipcp | |
export -f sgsbuild | |
export -f sgrbuild | |
export -f sggit | |
export -f sgspec | |
export -f sgsrc | |
export -f sgwip | |
echo 'setup sg commands from ~/.sgug_bashrc' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment