Skip to content

Commit

Permalink
Duplicate package checker, moves older packages out of the way
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Staszel committed Nov 4, 2010
1 parent e4e3fd8 commit bb12682
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 215 deletions.
1 change: 1 addition & 0 deletions core/kernel26-dockstar/PKGBUILD
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ build() {
mv dockstar-2.6.35.4.config .config mv dockstar-2.6.35.4.config .config
echo "Press ENTER 4972 times..." echo "Press ENTER 4972 times..."
make oldconfig make oldconfig
make menuconfig


# Make! # Make!
make modules uImage || return 1 make modules uImage || return 1
Expand Down
18 changes: 18 additions & 0 deletions scripts/dupechecker
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

lastfile=""
if [[ ! $* ]]; then
echo "usage: $0 <directory>"
exit 1
fi
if [[ ! -e "$1/old/" ]]; then
mkdir "$1/old/"
fi
for file in $(ls -r $1); do
stripped=${file%%-[0-9].*}
if [[ "$stripped" == "$lastfile" ]]; then
echo "moved duplicate $1/$file"
mv "$1/$file" "$1/old/"
fi
lastfile=$stripped
done
208 changes: 0 additions & 208 deletions scripts/pkgchecker/pkgchecker

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/pkgchecker/style.css

This file was deleted.

0 comments on commit bb12682

Please sign in to comment.