Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
dwb-hg PKGBUILD Cleanup Patch
--- PKGBUILD 2012-02-06 12:48:15.000000000 +0100
+++ PKGBUILD_OK 2012-02-07 12:30:48.804453842 +0100
@@ -17,19 +17,20 @@
build() {
cd "$srcdir"
- if [ -d "${hgrepo}" ]; then
- cd $hgrepo
+ if [ -d "$hgrepo" ]; then
+ cd "$hgrepo"
hg pull -u || test $? -eq 255 && return 1
else
- hg clone "$hgroot/$hgrepo"
+ hg clone "${hgroot}/${hgrepo}"
fi
- rm -rf $srcdir/$_hgrepo-build
- cp -a ${srcdir}/${hgrepo} ${srcdir}/${hgrepo}-build
- cd ${srcdir}/${hgrepo}-build
+ rm -rf "${srcdir}/${hgrepo}-build"
+ cp -a "${srcdir}/${hgrepo}" "${srcdir}/${hgrepo}-build"
+ cd "${srcdir}/${hgrepo}-build"
make
}
+
package() {
- cd ${srcdir}/${hgrepo}-build
- make DESTDIR=${pkgdir} install
+ cd "${srcdir}/${hgrepo}-build"
+ make DESTDIR="${pkgdir}" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.