index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Eric Bélanger <snowmaniscool@gmail.com> | 2011-08-08 15:16:23 -0400 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-08-13 20:06:43 +0200 |
commit | 2582637376a4643590c4893d4b19c6eadb2ac5ed (patch) | |
tree | f87804d3a48a47dd95737e643e3bf0c777df58cc | |
parent | 74df2a90d8bafe9423a3834657de1046cc0ae0fb (diff) |
-rwxr-xr-x | checkpkg | 10 |
@@ -39,9 +39,9 @@ for _pkgname in ${pkgname[@]}; do fi if [ -f "$STARTDIR/$pkgfile" ]; then - cp "$STARTDIR/$pkgfile" . + ln -s "$STARTDIR/$pkgfile" "$pkgfile" elif [ -f "$PKGDEST/$pkgfile" ]; then - cp "$PKGDEST/$pkgfile" . + ln -s "$PKGDEST/$pkgfile" "$pkgfile" else echo "File \"$pkgfile\" doesn't exist" exit 1 @@ -65,11 +65,11 @@ for _pkgname in ${pkgname[@]}; do if [ ! -f $oldpkg ]; then if echo $pkgurl | grep '^file:///' > /dev/null 2>&1; then - cp $(echo $pkgurl | sed 's#^file://##') . + ln -s "${pkgurl#file://}" $(basename "${pkgurl#file://}") elif [ -f "$PKGDEST/$oldpkg" ]; then - cp "$PKGDEST/$oldpkg" . + ln -s "$PKGDEST/$oldpkg" "$oldpkg" elif [ -f "$STARTDIR/$oldpkg" ]; then - cp "$STARTDIR/$oldpkg" . + ln -s "$STARTDIR/$oldpkg" "$oldpkg" else wget --quiet $pkgurl fi |