Skip to content

Commit

Permalink
Minor changes to the build and clean scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bsheytanov committed Apr 9, 2012
1 parent c05590c commit 625b6ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build.sh
Expand Up @@ -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"
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions clean.sh
Expand Up @@ -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.
Expand Down

0 comments on commit 625b6ea

Please sign in to comment.