14 lines
233 B
Bash
Executable File
14 lines
233 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ScriptFullname=$(readlink -e "$0")
|
|
SrpmProjectDir=$(dirname "$ScriptFullname")
|
|
RpmBuild="$HOME/rpmbuild"
|
|
|
|
if [[ -d "$RpmBuild" ]]; then
|
|
rm -rf "$RpmBuild"
|
|
else
|
|
rm -f "$RpmBuild"
|
|
fi
|
|
|
|
ln -s "$SrpmProjectDir" "$RpmBuild"
|