root/trunk/rpmsrc/prep.sh

Revision 604, 392 bytes (checked in by andrei, 4 years ago)

Added RMP generator by Cristi Vlasceanu

  • Property svn:executable set to *
Line 
1 #! /bin/bash
2 # Check for apt-get, alien, wget, then download dmd.zip
3 #
4 if test -n "`which apt-get`"; then
5     echo "Cool, apt-get detected."
6     echo "Checking alien..."
7
8     if test -z "`which alien`"; then
9         apt-get install alien
10     fi
11     echo "Checking wget..."
12     if test -z "`which wget`"; then
13         apt-get install wget
14     fi
15 fi
16
17 test -f dmd.${VER}.zip || wget http://ftp.digitalmars.com/dmd.${VER}.zip
Note: See TracBrowser for help on using the browser.