Permalink
Browse files

Minor changes to the build and clean scripts

  • Loading branch information...
1 parent c05590c commit 625b6eaf8e27dbc8b3bcf248a7ba2f7eef1dd40b @bsheytanov bsheytanov committed Apr 9, 2012
Showing with 9 additions and 8 deletions.
  1. +8 −8 build.sh
  2. +1 −0 clean.sh
View
@@ -12,22 +12,22 @@
node_modules="../node_modules"
universal="../node_modules/universal"
-repoURL="git://github.com/yzen/universal.git" # TODO: Change this back to the GPII project repo as soon as Yura's pull request is in.
+repoURL="git://github.com/GPII/universal.git"
usbListenerDir="./usbDriveListener"
gpiiInstallDir="/usr/local/gpii"
gpiiStateDir="/var/lib/gpii"
# Clone the necessary GPII framework dependencies from Git.
# TODO: Deal with cut and pastage for directory creation logic.
if [ -d $node_modules ]; then
- echo "$node_modules already exists"
+ echo "$node_modules already exists"
else
echo "$node_modules does not exist"
echo "creating $node_modules"
- mkdir -p "$node_modules"
+ mkdir -p "$node_modules"
fi
if [ -d $universal ]; then
- echo "$universal already exists"
+ echo "$universal already exists"
else
echo "$universal does not exist"
echo "cloning universal"
@@ -42,19 +42,19 @@ cd ../../..
# Create standard directory structure for GPII.
# Note: everything below here must be run as root, since we're installing ourselves centrally.
if [ -d $gpiiInstallDir ]; then
- echo "$gpiiInstallDir already exists"
+ echo "$gpiiInstallDir already exists"
else
echo "$gpiiInstallDir does not exist"
echo "creating $gpiiInstallDir"
- sudo mkdir -p "$gpiiInstallDir"
+ sudo mkdir -p "$gpiiInstallDir"
fi
if [ -d $gpiiStateDir ]; then
- echo "$gpiiStateDir already exists"
+ echo "$gpiiStateDir already exists"
else
echo "$gpiiStateDir does not exist"
echo "creating $gpiiStateDir"
- sudo mkdir -p "$gpiiStateDir"
+ sudo mkdir -p "$gpiiStateDir"
fi
# Install the USB Drive User Listener
View
@@ -18,6 +18,7 @@ cd ../../..
sudo rm -rf /usr/local/gpii
sudo rm -rf /var/lib/gpii
+sudo rm -f /etc/udev/rules.d/80-gpii.rules
# TODO: It seems extremely dangerous to go around deleting the node_modules directory we installed,
# in case the developer has unpushed modifications in there.

0 comments on commit 625b6ea

Please sign in to comment.